mirror of https://github.com/gorhill/uBlock.git
Fix logging code in `trusted-replace-argument` scriptlet
Related feedback: https://github.com/uBlockOrigin/uBlock-discussions/discussions/859#discussioncomment-8368839
This commit is contained in:
parent
e16cedb18d
commit
ebb110fb3e
|
@ -4650,7 +4650,7 @@ function trustedReplaceArgument(
|
|||
const argBefore = arglist[argpos];
|
||||
if ( reCondition.test(argBefore) === false ) { return reflector(...args); }
|
||||
arglist[argpos] = normalValue;
|
||||
safe.uboLog(logPrefix, `Replaced argument:\nBefore: ${argBefore.trim()}\nAfter: ${normalValue}`);
|
||||
safe.uboLog(logPrefix, `Replaced argument:\nBefore: ${JSON.stringify(argBefore)}\nAfter: ${normalValue}`);
|
||||
return reflector(...args);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue