1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-06-26 05:22:45 +02:00

Improved DOMRect performance

Factor 1.8 (For #253).
This commit is contained in:
kkapsner 2019-05-04 12:39:31 +02:00
parent 97c50e8761
commit 89124235c0

View File

@ -159,7 +159,6 @@
function createCheckerCallback(property){
return function(args, check){
const {prefs, notify, window, original} = check;
const originalValue = original.apply(this, window.Array.from(args));
if (prefs("protectDOMRect", window.location)){
const registration = getDOMRectRegistration(this);
if (registration){
@ -167,6 +166,7 @@
}
}
const originalValue = original.apply(this, window.Array.from(args));
return originalValue;
};
}