(rules)
| 64 | } |
| 65 | |
| 66 | function setRules(rules) { |
| 67 | // Callers map a rule to null to have it deleted, and rules without a pattern are useless. |
| 68 | const newRules = rules.filter((rule) => rule?.pattern); |
| 69 | Settings.set("exclusionRules", newRules); |
| 70 | } |
| 71 | |
| 72 | function onSettingsUpdated() { |
| 73 | // NOTE(mrmr1993): In FF, the |rules| argument will be garbage collected when the exclusions |