mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-04 08:37:11 +02:00
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];
|
const argBefore = arglist[argpos];
|
||||||
if ( reCondition.test(argBefore) === false ) { return reflector(...args); }
|
if ( reCondition.test(argBefore) === false ) { return reflector(...args); }
|
||||||
arglist[argpos] = normalValue;
|
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);
|
return reflector(...args);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user