mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Minor improvement of editInboundObjectFn scriptlet
This commit is contained in:
parent
694e3f79c7
commit
a93072533d
1 changed files with 1 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ function editInboundObjectFn(
|
|||
const argPos = parseInt(argPosRaw, 10);
|
||||
if ( isNaN(argPos) ) { return; }
|
||||
const getArgPos = args => {
|
||||
if ( Array.isArray(args) === false ) { return; }
|
||||
if ( argPos >= 0 ) {
|
||||
if ( args.length <= argPos ) { return; }
|
||||
return argPos;
|
||||
|
|
|
|||
Loading…
Reference in a new issue