diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 15:13:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 15:13:55 +0900 |
commit | 750be0263207b1275ae3911b5585343b49de2645 (patch) | |
tree | b635290335c2db71a6723eb7759c84bcf33a34ff /src/shared | |
parent | 896c2cf60d009c9b12d99a394287cfb1d5ee1e3a (diff) | |
parent | 1c8cef7cf673deb2c3d0c5e0b3617bf2f16d7c74 (diff) |
Merge pull request #691 from ueokande/enable-addon-on-blacklisted-sites
Enable addon on blacklisted sites
Diffstat (limited to 'src/shared')
-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)); } } |