index reducer in background

This commit is contained in:
Shin'ya Ueoka 2017-10-14 22:11:54 +09:00
parent fc90f78e26
commit 157ebaef9c
3 changed files with 18 additions and 12 deletions

View file

@ -1,7 +1,7 @@
import * as settingsActions from 'settings/actions/setting';
import messages from 'shared/messages';
import BackgroundComponent from 'background/components/background';
import reducers from 'settings/reducers/setting';
import reducers from 'background/reducers';
import { createStore } from 'shared/store';
const store = createStore(reducers, (e, sender) => {
@ -13,9 +13,7 @@ const store = createStore(reducers, (e, sender) => {
});
}
});
// eslint-disable-next-line no-unused-vars
const backgroundComponent = new BackgroundComponent(store);
store.subscribe((sender) => {
backgroundComponent.update(sender);
});
store.dispatch(settingsActions.load());