mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Fix argument list lookup in trusted-replace-argument
scriptlet
This commit is contained in:
parent
8c7a33fe90
commit
9b40b2150a
1 changed files with 1 additions and 1 deletions
|
@ -4610,7 +4610,7 @@ function trustedReplaceArgument(
|
|||
? safe.patternToRegex(extraArgs.condition)
|
||||
: /^/;
|
||||
const reflector = proxyApplyFn(propChain, function(...args) {
|
||||
const arglist = args.length >= 2 && args[1];
|
||||
const arglist = args[args.length-1];
|
||||
if ( Array.isArray(arglist) === false ) { return reflector(...args); }
|
||||
const argBefore = arglist[argpos];
|
||||
if ( reCondition.test(argBefore) === false ) { return reflector(...args); }
|
||||
|
|
Loading…
Reference in a new issue