1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Not connected iframe threw error with persistent rng

This commit is contained in:
kkapsner 2019-05-29 00:26:35 +02:00
parent 308592e785
commit 97e08d874a
2 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,7 @@
return "shared://domain";
}
if (!window.location.href || window.location.href === "about:blank"){
if (window !== window.parent){
if (window !== window.parent && window.parent){
return getDomain(window.parent);
}
else if (window.opener){

View File

@ -8,6 +8,7 @@ Version 0.5.10:
fixes:
- setter for innerHTML broke pages
- protection for document.write and document.wirteln broke in Firefox 69
- not connected iFrame threw error with persistent rng
known issues:
- if a data URL is blocked the page action button does not appear