mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Fix regression in prevent-fetch scriptlet
Related feedback: https://github.com/uBlockOrigin/uAssets/pull/15692#issuecomment-3558272468
This commit is contained in:
parent
42c94d97f9
commit
9d76b9991f
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,7 @@ function preventFetchFn(
|
|||
return context.reflect();
|
||||
}
|
||||
const matched = matchObjectPropertiesFn(propNeedles, details);
|
||||
if ( matched === undefined ) {
|
||||
if ( matched === undefined || matched.length === 0 ) {
|
||||
return context.reflect();
|
||||
}
|
||||
return Promise.resolve(generateContentFn(trusted, responseBody)).then(text => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue