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:34:22 +0900 |
commit | a1e5e97200bd96ba918744dfa2758f977ca823c6 (patch) | |
tree | f71f0441b92ba892ad538c40d98b8477295c221d /src/background/components | |
parent | 89c28d67fd7b961833b557da904bd17aa28660c5 (diff) |
Find as clean architecture
Diffstat (limited to 'src/background/components')
-rw-r--r-- | src/background/components/background.js | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js index 9ba733d..3667f14 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 findActions from 'background/actions/find'; import * as tabActions from 'background/actions/tab'; export default class BackgroundComponent { @@ -21,7 +20,6 @@ export default class BackgroundComponent { onMessage(message, sender) { let settings = this.store.getState().setting; - let find = this.store.getState().find; switch (message.type) { case messages.OPEN_URL: @@ -37,11 +35,6 @@ export default class BackgroundComponent { commandActions.exec(sender.tab, message.text, settings.value), ); return this.broadcastSettingsChanged(); - case messages.FIND_GET_KEYWORD: - return Promise.resolve(find.keyword); - case messages.FIND_SET_KEYWORD: - this.store.dispatch(findActions.setKeyword(message.keyword)); - return Promise.resolve({}); } } |