aboutsummaryrefslogtreecommitdiff
path: root/src/content/controllers
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/content/controllers
parentb1a6f374dca078dee2406ebe049715b826e37ca2 (diff)
Enable addon on blacklisted sites
Diffstat (limited to 'src/content/controllers')
-rw-r--r--src/content/controllers/SettingController.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/content/controllers/SettingController.ts b/src/content/controllers/SettingController.ts
index 9124188..2d32c09 100644
--- a/src/content/controllers/SettingController.ts
+++ b/src/content/controllers/SettingController.ts
@@ -18,9 +18,9 @@ export default class SettingController {
const url = new URL(window.location.href);
const disabled = current.blacklist.includesEntireBlacklist(url);
if (disabled) {
- this.addonEnabledUseCase.disable();
+ await this.addonEnabledUseCase.disable();
} else {
- this.addonEnabledUseCase.enable();
+ await this.addonEnabledUseCase.enable();
}
} catch (e) {
// Sometime sendMessage fails when background script is not ready.