aboutsummaryrefslogtreecommitdiff
path: root/src/content/controllers
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-10-05 08:52:49 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-10-07 13:01:31 +0000
commit9ff80fcac3600401c9fed053cc8422f89c404940 (patch)
tree49950c7c2d997438f9e30ca83d1aa604e8b424af /src/content/controllers
parent8eddcc1785a85bbe74be254d1055ebe5125dad10 (diff)
Add partial blacklist item
Diffstat (limited to 'src/content/controllers')
-rw-r--r--src/content/controllers/SettingController.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/content/controllers/SettingController.ts b/src/content/controllers/SettingController.ts
index 06273a0..e1c7f01 100644
--- a/src/content/controllers/SettingController.ts
+++ b/src/content/controllers/SettingController.ts
@@ -15,7 +15,8 @@ export default class SettingController {
async initSettings(): Promise<void> {
try {
let current = await this.settingUseCase.reload();
- let disabled = current.blacklist.includes(window.location.href);
+ let url = new URL(window.location.href);
+ let disabled = current.blacklist.includesEntireBlacklist(url);
if (disabled) {
this.addonEnabledUseCase.disable();
} else {