diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-22 00:01:24 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-07-22 00:01:24 +0900 |
commit | 89c28d67fd7b961833b557da904bd17aa28660c5 (patch) | |
tree | 2af29fb34f81e9dba508a4bccad98fad73dea143 /src/background/components | |
parent | 0652131de885df3ebb7c9c0e762fd1604486a892 (diff) |
Settings as clean architecture
Diffstat (limited to 'src/background/components')
-rw-r--r-- | src/background/components/background.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js index d933d7b..9ba733d 100644 --- a/src/background/components/background.js +++ b/src/background/components/background.js @@ -1,6 +1,5 @@ import messages from 'shared/messages'; import * as commandActions from 'background/actions/command'; -import * as settingActions from 'background/actions/setting'; import * as findActions from 'background/actions/find'; import * as tabActions from 'background/actions/tab'; @@ -38,11 +37,6 @@ export default class BackgroundComponent { commandActions.exec(sender.tab, message.text, settings.value), ); return this.broadcastSettingsChanged(); - case messages.SETTINGS_QUERY: - return Promise.resolve(this.store.getState().setting.value); - case messages.SETTINGS_RELOAD: - this.store.dispatch(settingActions.load()); - return this.broadcastSettingsChanged(); case messages.FIND_GET_KEYWORD: return Promise.resolve(find.keyword); case messages.FIND_SET_KEYWORD: |