diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-01-11 20:07:25 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-01-11 20:07:25 +0900 |
commit | dda4e7475cdd092d00441c7cd0ceb194ee5dee3d (patch) | |
tree | d1bd538de2efb8243a55d80ece4ed5a63feb058d /src/background/components | |
parent | 22c34a0a6f9721fb9d907ab10de91cbbc40d6bbe (diff) |
move commands to background action
Diffstat (limited to 'src/background/components')
-rw-r--r-- | src/background/components/background.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js index 22c6693..19bf27f 100644 --- a/src/background/components/background.js +++ b/src/background/components/background.js @@ -1,5 +1,6 @@ import messages from 'shared/messages'; import * as operationActions from 'background/actions/operation'; +import * as commandActions from 'background/actions/command'; import * as settingActions from 'background/actions/setting'; import * as tabActions from 'background/actions/tab'; import * as commands from 'shared/commands'; @@ -35,7 +36,7 @@ export default class BackgroundComponent { return this.store.dispatch( tabActions.openToTab(message.url, sender.tab), sender); case messages.CONSOLE_ENTER_COMMAND: - return commands.exec(message.text, settings.value).catch((e) => { + return commandActions.exec(message.text, settings.value).catch((e) => { return browser.tabs.sendMessage(sender.tab.id, { type: messages.CONSOLE_SHOW_ERROR, text: e.message, |