From 65a20a9fc43a20664e7d90de5d266ec134f9020a Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 22 Dec 2019 14:45:26 +0900 Subject: Enable addon on blacklisted sites --- src/content/controllers/SettingController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/content/controllers') 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. -- cgit v1.2.3