mirror of https://github.com/gorhill/uBlock.git
Fix oversight in last commit
This commit is contained in:
parent
9f5697c047
commit
a1a3477b07
|
@ -1058,7 +1058,10 @@ function evaldataPrune(
|
||||||
try {
|
try {
|
||||||
data = JSON.parse(dataToEval);
|
data = JSON.parse(dataToEval);
|
||||||
if ( typeof data === 'object' ) {
|
if ( typeof data === 'object' ) {
|
||||||
args[0] = objectPrune(dataToEval, rawPrunePaths, rawNeedlePaths);
|
let after = JSON.stringify(
|
||||||
|
objectPrune(data, rawPrunePaths, rawNeedlePaths)
|
||||||
|
);
|
||||||
|
args[0] = `(${after})`;
|
||||||
}
|
}
|
||||||
} catch(ex) {
|
} catch(ex) {
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue