aboutsummaryrefslogtreecommitdiff
path: root/src/shared/settings
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 14:45:26 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-12-22 14:45:26 +0900
commit65a20a9fc43a20664e7d90de5d266ec134f9020a (patch)
tree7172bfb0b1992e9d2c9cc35f0c7ea43dee0a9af4 /src/shared/settings
parentb1a6f374dca078dee2406ebe049715b826e37ca2 (diff)
Enable addon on blacklisted sites
Diffstat (limited to 'src/shared/settings')
-rw-r--r--src/shared/settings/Blacklist.ts5
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));
}
}