diff --git a/background/others.ts b/background/others.ts index ecf91344b..161a39c44 100644 --- a/background/others.ts +++ b/background/others.ts @@ -951,7 +951,7 @@ BgUtils_.GC_ = function (inc0?: number): void { hook.keyMappings = null as never; Commands = null as never; } - if (Exclusions && Exclusions.rules_.length === 0) { + if (Exclusions && Exclusions.rules_.length <= 0) { hook.exclusionRules = hook.exclusionOnlyFirstMatch = hook.exclusionListenHash = null as never; Exclusions = null as never; diff --git a/pages/options_base.ts b/pages/options_base.ts index 13e7eaf18..c7da35f44 100644 --- a/pages/options_base.ts +++ b/pages/options_base.ts @@ -620,7 +620,7 @@ BG_.BgUtils_.require_("Exclusions").then((function (callback) { , ref1 = bgExclusions.testers_ = BG_.Object.create(null) , ref2 = bgExclusions.rules_; for (let _i = 0, _len = rules.length; _i < _len; _i++) { - ref1[rules[_i].pattern] = ref2[_i * 2]; + ref1[rules[_i].pattern] = ref2[_i]; } const sender = ref ? ref[0].s : > { s: Frames.Status.enabled, f: Frames.Flags.Default } , toggleAction = sender.s !== Frames.Status.disabled ? "Disable" : "Enable"