mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
[mv3] Fix Safari's compatiblity layer
This commit is contained in:
parent
03f06ab6a9
commit
6221cecf57
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ const prepareUpdateRules = optionsBefore => {
|
|||
const { addRules, removeRuleIds } = optionsBefore;
|
||||
const addRulesAfter = addRules?.filter(isSupportedRule);
|
||||
if ( Boolean(addRulesAfter?.length || removeRuleIds?.length) === false ) { return; }
|
||||
addRulesAfter.forEach(r => {
|
||||
addRulesAfter?.forEach(r => {
|
||||
if ( r.action.redirect?.regexSubstitution === undefined ) { return; }
|
||||
if ( r.condition.requestDomains === undefined ) { return; }
|
||||
r.condition.domains = r.condition.requestDomains;
|
||||
|
|
|
|||
Loading…
Reference in a new issue