mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-07-04 20:46:39 +02:00
parent
be2f4d8904
commit
b4dbd71d11
2 changed files with 3 additions and 1 deletions
|
@ -127,6 +127,7 @@
|
|||
function interceptWindow(window){
|
||||
try {
|
||||
var href = window.location.href;
|
||||
var wrappedTry = getWrapped(window);
|
||||
}
|
||||
catch (e){
|
||||
// we are unable to read the location due to SOP
|
||||
|
@ -134,7 +135,7 @@
|
|||
warning("NOT intercepting window due to SOP", window);
|
||||
return false;
|
||||
}
|
||||
const wrappedWindow = getWrapped(window);
|
||||
const wrappedWindow = wrappedTry;
|
||||
|
||||
if (!enabled || interceptedWindows.get(wrappedWindow)){
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue