diff --git a/lib/modifiedDOMRectAPI.js b/lib/modifiedDOMRectAPI.js index 09a1a53..e8ae2bd 100644 --- a/lib/modifiedDOMRectAPI.js +++ b/lib/modifiedDOMRectAPI.js @@ -195,7 +195,7 @@ if (registration){ const fakeDomRect = getFakeDomRect(window, this, prefs, registration.notify); registeredRects.delete(getWrapped(this)); - ["x", "y", "width", "height"].forEach(function(prop){ + ["x", "y", "width", "height"].forEach((prop) => { if (prop === property){ this[prop] = newValue; }