diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-12-22 15:13:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-22 15:13:55 +0900 |
commit | 750be0263207b1275ae3911b5585343b49de2645 (patch) | |
tree | b635290335c2db71a6723eb7759c84bcf33a34ff /src/content/controllers | |
parent | 896c2cf60d009c9b12d99a394287cfb1d5ee1e3a (diff) | |
parent | 1c8cef7cf673deb2c3d0c5e0b3617bf2f16d7c74 (diff) |
Merge pull request #691 from ueokande/enable-addon-on-blacklisted-sites
Enable addon on blacklisted sites
Diffstat (limited to 'src/content/controllers')
-rw-r--r-- | src/content/controllers/SettingController.ts | 4 |
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. |