mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix editInboundObjectFn utility scriptlet
This commit is contained in:
parent
d8ed2c2866
commit
d376adaae8
1 changed files with 3 additions and 3 deletions
|
|
@ -216,11 +216,11 @@ function editInboundObjectFn(
|
|||
return objAfter;
|
||||
};
|
||||
proxyApplyFn(propChain, function(context) {
|
||||
const i = getArgPos(context.args);
|
||||
const i = getArgPos(context.callArgs);
|
||||
if ( i !== undefined ) {
|
||||
const obj = editObj(context.args[i]);
|
||||
const obj = editObj(context.callArgs[i]);
|
||||
if ( obj ) {
|
||||
context.args[i] = obj;
|
||||
context.callArgs[i] = obj;
|
||||
}
|
||||
}
|
||||
return context.reflect();
|
||||
|
|
|
|||
Loading…
Reference in a new issue