update indicator on loaded

jh-changes
Shin'ya Ueoka 7 years ago
parent 1f51f3260d
commit cf30ef0cd5
  1. 2
      src/content/components/common/index.js
  2. 2
      src/content/components/top-content/index.js

@ -15,7 +15,7 @@ export default class Common {
input.onKey(key => keymapper.key(key)); input.onKey(key => keymapper.key(key));
this.store = store; this.store = store;
this.prevEnabled = this.store.getState().addon.enabled; this.prevEnabled = undefined;
this.reloadSettings(); this.reloadSettings();

@ -44,6 +44,8 @@ export default class TopContent {
.some(regex => regex.test(partial)); .some(regex => regex.test(partial));
if (matched) { if (matched) {
this.store.dispatch(addonActions.disable()); this.store.dispatch(addonActions.disable());
} else {
this.store.dispatch(addonActions.enable());
} }
} }