[mv3] Fix Safari's compatiblity layer

This commit is contained in:
Raymond Hill 2025-05-29 14:18:46 -04:00
parent 03f06ab6a9
commit 6221cecf57
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -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;