1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Fix oversight in last commit

This commit is contained in:
Raymond Hill 2023-05-29 14:54:13 -04:00
parent 9f5697c047
commit a1a3477b07
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -1058,7 +1058,10 @@ function evaldataPrune(
try {
data = JSON.parse(dataToEval);
if ( typeof data === 'object' ) {
args[0] = objectPrune(dataToEval, rawPrunePaths, rawNeedlePaths);
let after = JSON.stringify(
objectPrune(data, rawPrunePaths, rawNeedlePaths)
);
args[0] = `(${after})`;
}
} catch(ex) {
}