mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix overzealous logging in acs scriptlet
This commit is contained in:
parent
f6263aa468
commit
349c8ca619
1 changed files with 2 additions and 2 deletions
|
@ -202,11 +202,11 @@ function abortCurrentScript(
|
|||
const e = document.currentScript;
|
||||
if ( e instanceof HTMLScriptElement === false ) { return; }
|
||||
if ( e === thisScript ) { return; }
|
||||
if ( e.src !== '' && log ) { safe.uboLog(`src: ${e.src}`); }
|
||||
if ( reContext.test(e.src) === false ) { return; }
|
||||
if ( log && e.src !== '' ) { safe.uboLog(`matched src: ${e.src}`); }
|
||||
const scriptText = getScriptText(e);
|
||||
if ( log ) { safe.uboLog(`script text: ${scriptText}`); }
|
||||
if ( reNeedle.test(scriptText) === false ) { return; }
|
||||
if ( log ) { safe.uboLog(`matched script text: ${scriptText}`); }
|
||||
throw new ReferenceError(exceptionToken);
|
||||
};
|
||||
if ( debug ) { debugger; } // jshint ignore: line
|
||||
|
|
Loading…
Reference in a new issue