mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-02 17:19:38 +02:00
Fix console logging ability in setTimeout-if
Regression from e0fd9750d4
This commit is contained in:
parent
14e60f5e2d
commit
e3043fadc7
@ -543,7 +543,7 @@
|
|||||||
} else {
|
} else {
|
||||||
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||||
}
|
}
|
||||||
const log = needleNot === false && needle === '.?' &&
|
const log = needleNot === false && needle === '' &&
|
||||||
delayNot === false && isNaN(delay)
|
delayNot === false && isNaN(delay)
|
||||||
? console.log
|
? console.log
|
||||||
: undefined;
|
: undefined;
|
||||||
@ -616,7 +616,7 @@
|
|||||||
} else {
|
} else {
|
||||||
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||||
}
|
}
|
||||||
const log = needleNot === false && needle === '.?' &&
|
const log = needleNot === false && needle === '' &&
|
||||||
delayNot === false && isNaN(delay)
|
delayNot === false && isNaN(delay)
|
||||||
? console.log
|
? console.log
|
||||||
: undefined;
|
: undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user