[mv3] Revert trying to transpose requestDomains

This breaks uBOL -- unclear error message but disabling rulesets
eventually unbreak the extension, thus possibly a case of going
over the rule limit as a result of transposition.

The `requestDomains` issue will have to wait for the official
Safari fix.
This commit is contained in:
Raymond Hill 2025-06-12 09:32:59 -04:00
parent 7060be775c
commit ff8c527b99
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -45,16 +45,7 @@ export function patchRuleset(ruleset) {
condition.excludedDomains = condition.excludedInitiatorDomains;
delete condition.excludedInitiatorDomains;
}
if (
Array.isArray(condition.requestDomains) &&
Array.isArray(condition.excludedRequestDomains) === false &&
Boolean(condition.regexFilter) === false &&
Boolean(condition.urlFilter) === false
) {
patchRuleWithRequestDomains(rule, out);
} else {
out.push(rule);
}
out.push(rule);
}
return out;
}