mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-03 03:56:26 +02:00
window objects of <frame>s with no url do get the "about:blank" too late -> treat blank URL the same way.
This commit is contained in:
parent
eb6494eca5
commit
6636e1d68b
2 changed files with 2 additions and 3 deletions
|
@ -6,7 +6,7 @@
|
|||
"use strict";
|
||||
|
||||
function getDomain(window){
|
||||
if (window.location.href === "about:blank"){
|
||||
if (!window.location.href || window.location.href === "about:blank"){
|
||||
if (window !== window.parent){
|
||||
return getDomain(window.parent);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue