Fix `raf-if` scriptlet: bad Proxy target

It was working nonetheless, which made me
miss the mistake.
This commit is contained in:
Raymond Hill 2019-08-21 10:36:08 -04:00
parent e735cd6a3f
commit 252ce421c9
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -405,7 +405,7 @@
} }
const log = needle === '.?' && not === false ? console.log : undefined; const log = needle === '.?' && not === false ? console.log : undefined;
needle = new RegExp(needle); needle = new RegExp(needle);
window.requestAnimationFrame = new Proxy(window.setTimeout, { window.requestAnimationFrame = new Proxy(window.requestAnimationFrame, {
apply: function(target, thisArg, args) { apply: function(target, thisArg, args) {
const a = args[0]; const a = args[0];
const s = a.toString(); const s = a.toString();