mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Add ability to distinguish trapped entry point in json-prune
This commit is contained in:
parent
4f082a96bc
commit
2c04b5a982
1 changed files with 4 additions and 1 deletions
|
@ -1216,7 +1216,10 @@ function jsonPrune(
|
|||
const extraArgs = safe.getExtraArgs(Array.from(arguments), 3);
|
||||
const logLevel = shouldLog(extraArgs);
|
||||
const fetchPropNeedles = parsePropertiesToMatch(extraArgs.fetchPropsToMatch, 'url');
|
||||
if ( fetchPropNeedles.size === 0 ) {
|
||||
if (
|
||||
fetchPropNeedles.size === 0 ||
|
||||
matchObjectProperties(fetchPropNeedles, { url: 'undefined' })
|
||||
) {
|
||||
JSON.parse = new Proxy(JSON.parse, {
|
||||
apply: function(target, thisArg, args) {
|
||||
return objectPrune(
|
||||
|
|
Loading…
Reference in a new issue