diff options
author | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-05 08:52:49 +0000 |
---|---|---|
committer | Shin'ya UEOKA <ueokande@i-beam.org> | 2019-10-07 13:01:31 +0000 |
commit | 9ff80fcac3600401c9fed053cc8422f89c404940 (patch) | |
tree | 49950c7c2d997438f9e30ca83d1aa604e8b424af /src/content/controllers | |
parent | 8eddcc1785a85bbe74be254d1055ebe5125dad10 (diff) |
Add partial blacklist item
Diffstat (limited to 'src/content/controllers')
-rw-r--r-- | src/content/controllers/SettingController.ts | 3 |
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 { |