mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3][edge] Reject responseheaders rules only for non-regex rules
Related commit:
a5091488e5
This commit is contained in:
parent
cef428e565
commit
85db7c38c1
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,9 @@
|
|||
|
||||
function patchRule(rule, out) {
|
||||
const { condition } = rule;
|
||||
if ( Array.isArray(condition.responseHeaders) ) { return; }
|
||||
if ( Array.isArray(condition.responseHeaders) ) {
|
||||
if ( condition.regexFilter === undefined ) { return; }
|
||||
}
|
||||
out.push(rule);
|
||||
return rule;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue