mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix regression in managing redirect rules
Regression cause by:
fad0af591f
This commit is contained in:
parent
f9ee5e2a64
commit
69fa0c2e09
1 changed files with 3 additions and 1 deletions
|
|
@ -209,7 +209,9 @@ async function updateRedirectRules(currentRules, addRules, removeRuleIds) {
|
|||
for ( const rule of currentRules ) {
|
||||
if ( rule.id >= SPECIAL_RULES_REALM ) { continue; }
|
||||
if ( rule.action.type !== 'redirect' ) { continue; }
|
||||
if ( rule.action.redirect.extensionPath === undefined ) { continue; }
|
||||
if ( rule.action.redirect.extensionPath === undefined ) {
|
||||
if ( rule.action.redirect.regexSubstitution === undefined ) { continue; }
|
||||
}
|
||||
removeRuleIds.push(rule.id);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue