From 157ebaef9c386175f84332bab003ec9d53ef3bac Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 14 Oct 2017 22:11:54 +0900 Subject: index reducer in background --- src/background/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/background/index.js') diff --git a/src/background/index.js b/src/background/index.js index 6ba37eb..8a68767 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -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()); -- cgit v1.2.3