1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2025-01-03 10:31:54 +01:00

Fixed broken setter on DOMRect

This commit is contained in:
kkapsner 2019-05-09 23:11:15 +02:00
parent c1e92dcceb
commit 88537c7516

View File

@ -195,7 +195,7 @@
if (registration){ if (registration){
const fakeDomRect = getFakeDomRect(window, this, prefs, registration.notify); const fakeDomRect = getFakeDomRect(window, this, prefs, registration.notify);
registeredRects.delete(getWrapped(this)); registeredRects.delete(getWrapped(this));
["x", "y", "width", "height"].forEach(function(prop){ ["x", "y", "width", "height"].forEach((prop) => {
if (prop === property){ if (prop === property){
this[prop] = newValue; this[prop] = newValue;
} }