diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 14:45:26 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 14:45:26 +0900 |
commit | 65a20a9fc43a20664e7d90de5d266ec134f9020a (patch) | |
tree | 7172bfb0b1992e9d2c9cc35f0c7ea43dee0a9af4 /src/shared/settings | |
parent | b1a6f374dca078dee2406ebe049715b826e37ca2 (diff) |
Enable addon on blacklisted sites
Diffstat (limited to 'src/shared/settings')
-rw-r--r-- | src/shared/settings/Blacklist.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shared/settings/Blacklist.ts b/src/shared/settings/Blacklist.ts index 6e6b51c..6c54d73 100644 --- a/src/shared/settings/Blacklist.ts +++ b/src/shared/settings/Blacklist.ts @@ -55,12 +55,9 @@ export class BlacklistItem { } includeKey(url: URL, key: Key): boolean { - if (!this.matches(url)) { + if (!this.matches(url) || !this.partial) { return false; } - if (!this.partial) { - return true; - } return this.keyEntities.some(k => k.equals(key)); } } |