1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 12:57:57 +02:00

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

View File

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