diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-11-11 11:18:01 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-11 11:18:01 +0000 |
commit | 0630c8f56664ac48f4cf8799dc1d88a6388957a6 (patch) | |
tree | d9160c76f4c3435b0859669f1254b12eb92d183f /src/background | |
parent | 86b534b1e1de03d51efb9f28cd32296d037f07fc (diff) | |
parent | fe8a9283172e43e29480c4293c34565859c04c32 (diff) |
Merge pull request #142 from ueokande/find-mode
[WIP] Find mode
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/actions/operation.js | 4 | ||||
-rw-r--r-- | src/background/components/background.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js index 9876940..1e4990c 100644 --- a/src/background/actions/operation.js +++ b/src/background/actions/operation.js @@ -65,6 +65,10 @@ const exec = (operation, tab) => { return sendConsoleShowCommand(tab, 'winopen '); case operations.COMMAND_SHOW_BUFFER: return sendConsoleShowCommand(tab, 'buffer '); + case operations.FIND_START: + return browser.tabs.sendMessage(tab.id, { + type: messages.CONSOLE_SHOW_FIND + }); default: return Promise.resolve(); } diff --git a/src/background/components/background.js b/src/background/components/background.js index a5f4f5f..2d94310 100644 --- a/src/background/components/background.js +++ b/src/background/components/background.js @@ -34,11 +34,7 @@ export default class BackgroundComponent { } return this.store.dispatch( tabActions.openToTab(message.url, sender.tab), sender); - case messages.CONSOLE_BLURRED: - return browser.tabs.sendMessage(sender.tab.id, { - type: messages.CONSOLE_HIDE_COMMAND, - }); - case messages.CONSOLE_ENTERED: + case messages.CONSOLE_ENTER_COMMAND: return commands.exec(message.text, settings.value).catch((e) => { return browser.tabs.sendMessage(sender.tab.id, { type: messages.CONSOLE_SHOW_ERROR, |