update indicator on loaded

This commit is contained in:
Shin'ya Ueoka 2018-05-06 21:35:11 +09:00
parent 1f51f3260d
commit cf30ef0cd5
2 changed files with 3 additions and 1 deletions

View file

@ -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();

View file

@ -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());
}
}