Skip to content

Commit

Permalink
fix a bug in fafffc4
Browse files Browse the repository at this point in the history
It forgot a line in options_base, and causes #64.
  • Loading branch information
gdh1995 committed Aug 15, 2019
1 parent f6f6911 commit ac17617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion background/others.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pages/options_base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 : <Readonly<Frames.Sender>> { s: Frames.Status.enabled, f: Frames.Flags.Default }
, toggleAction = sender.s !== Frames.Status.disabled ? "Disable" : "Enable"
Expand Down

0 comments on commit ac17617

Please sign in to comment.