aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-06 23:55:52 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-06 23:55:52 +0900
commit4cb17031d11d76275de51e31218fb87359e7d826 (patch)
tree626a976e303458daef90a5a5fac34a5185bc275e /src/background
parent10ad62e60698c5d53ffcf58ae6abd182f7d3fc9c (diff)
[wip] remove STATE_UPDATE
Diffstat (limited to 'src/background')
-rw-r--r--src/background/index.js9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/background/index.js b/src/background/index.js
index 8dc55cb..05d3553 100644
--- a/src/background/index.js
+++ b/src/background/index.js
@@ -3,7 +3,6 @@ import * as settingsActions from 'actions/setting';
import BackgroundComponent from 'components/background';
import BackgroundInputComponent from 'components/background-input';
import reducers from 'reducers';
-import messages from 'content/messages';
import { createStore } from 'store';
const store = createStore(reducers, (e, sender) => {
@@ -18,13 +17,5 @@ store.subscribe((sender) => {
backgroundComponent.update(sender);
backgroundInputComponent.update(sender);
});
-store.subscribe((sender) => {
- if (sender) {
- return browser.tabs.sendMessage(sender.tab.id, {
- type: messages.STATE_UPDATE,
- state: store.getState()
- });
- }
-});
store.dispatch(settingsActions.load());