mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
separate persistent random numbers for incognito windows
This commit is contained in:
parent
7f1fe0ed1c
commit
9b18631768
6 changed files with 61 additions and 18 deletions
|
@ -28,6 +28,7 @@
|
|||
if (data["canvasBlocker-new-domain-rnd"]){
|
||||
persistentRndStorage.setDomainData(
|
||||
data["canvasBlocker-new-domain-rnd"].domain,
|
||||
data["canvasBlocker-new-domain-rnd"].incognito,
|
||||
data["canvasBlocker-new-domain-rnd"].rnd
|
||||
);
|
||||
if (keys.length === 1){
|
||||
|
@ -55,7 +56,8 @@
|
|||
verbose("send back the persistent random seeds", persistentRndStorage.persistentRnd);
|
||||
port.postMessage({
|
||||
tabId: port.sender.tab.id,
|
||||
persistentRnd: persistentRndStorage.persistentRnd
|
||||
persistentRnd: persistentRndStorage.persistentRnd,
|
||||
persistentIncognitoRnd: persistentRndStorage.persistentIncognitoRnd
|
||||
});
|
||||
var url = new URL(port.sender.url);
|
||||
port.onMessage.addListener(function(data){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue