1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-23 02:42:41 +01:00

Fix console logging ability in setTimeout-if

Regression from e0fd9750d4
This commit is contained in:
Raymond Hill 2019-08-25 09:38:08 -04:00
parent 14e60f5e2d
commit e3043fadc7
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -543,7 +543,7 @@
} else {
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
const log = needleNot === false && needle === '.?' &&
const log = needleNot === false && needle === '' &&
delayNot === false && isNaN(delay)
? console.log
: undefined;
@ -616,7 +616,7 @@
} else {
needle = needle.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
const log = needleNot === false && needle === '.?' &&
const log = needleNot === false && needle === '' &&
delayNot === false && isNaN(delay)
? console.log
: undefined;