aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-06 21:35:11 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-06 21:35:11 +0900
commitcf30ef0cd503b3b9dee882202d64ba9db9922ee3 (patch)
tree4d995736429753d8c9d2892ef6195e6517777fc9 /src
parent1f51f3260d90914fba89720f63813a3f41f5e5f1 (diff)
update indicator on loaded
Diffstat (limited to 'src')
-rw-r--r--src/content/components/common/index.js2
-rw-r--r--src/content/components/top-content/index.js2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/content/components/common/index.js b/src/content/components/common/index.js
index c76a7d9..9b7b083 100644
--- a/src/content/components/common/index.js
+++ b/src/content/components/common/index.js
@@ -15,7 +15,7 @@ export default class Common {
input.onKey(key => keymapper.key(key));
this.store = store;
- this.prevEnabled = this.store.getState().addon.enabled;
+ this.prevEnabled = undefined;
this.reloadSettings();
diff --git a/src/content/components/top-content/index.js b/src/content/components/top-content/index.js
index cb9e160..a0d0480 100644
--- a/src/content/components/top-content/index.js
+++ b/src/content/components/top-content/index.js
@@ -44,6 +44,8 @@ export default class TopContent {
.some(regex => regex.test(partial));
if (matched) {
this.store.dispatch(addonActions.disable());
+ } else {
+ this.store.dispatch(addonActions.enable());
}
}