1
0
Fork 0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-07-03 03:56:26 +02:00

added "share persistent randomness between domains"

Fixes #290
This commit is contained in:
kkapsner 2018-10-25 13:42:18 +02:00
parent 9dcb1f8903
commit 947d9e0c59
9 changed files with 131 additions and 6 deletions

View file

@ -66,6 +66,9 @@
const settings = require("./settings");
function getDomain(window){
if (settings.sharePersistentRndBetweenDomains){
return "shared://domain";
}
if (!window.location.href || window.location.href === "about:blank"){
if (window !== window.parent){
return getDomain(window.parent);