mirror of
https://github.com/kkapsner/CanvasBlocker
synced 2025-05-19 19:02:21 +02:00
parent
97c50e8761
commit
89124235c0
@ -159,7 +159,6 @@
|
|||||||
function createCheckerCallback(property){
|
function createCheckerCallback(property){
|
||||||
return function(args, check){
|
return function(args, check){
|
||||||
const {prefs, notify, window, original} = check;
|
const {prefs, notify, window, original} = check;
|
||||||
const originalValue = original.apply(this, window.Array.from(args));
|
|
||||||
if (prefs("protectDOMRect", window.location)){
|
if (prefs("protectDOMRect", window.location)){
|
||||||
const registration = getDOMRectRegistration(this);
|
const registration = getDOMRectRegistration(this);
|
||||||
if (registration){
|
if (registration){
|
||||||
@ -167,6 +166,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const originalValue = original.apply(this, window.Array.from(args));
|
||||||
return originalValue;
|
return originalValue;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user