aboutsummaryrefslogtreecommitdiff
path: root/src/background/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/components')
-rw-r--r--src/background/components/background.js2
-rw-r--r--src/background/components/operation.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/src/background/components/background.js b/src/background/components/background.js
index e13424b..29124a6 100644
--- a/src/background/components/background.js
+++ b/src/background/components/background.js
@@ -37,7 +37,7 @@ export default class BackgroundComponent {
tabActions.openToTab(message.url, sender.tab), sender);
case messages.CONSOLE_ENTER_COMMAND:
this.store.dispatch(
- commandActions.exec(message.text, settings.value),
+ commandActions.exec(sender.tab, message.text, settings.value),
sender
);
return this.broadcastSettingsChanged();
diff --git a/src/background/components/operation.js b/src/background/components/operation.js
index 9a0b4e1..58edb8c 100644
--- a/src/background/components/operation.js
+++ b/src/background/components/operation.js
@@ -90,6 +90,11 @@ export default class BackgroundComponent {
return this.sendConsoleShowCommand(tab, 'winopen ');
case operations.COMMAND_SHOW_BUFFER:
return this.sendConsoleShowCommand(tab, 'buffer ');
+ case operations.COMMAND_SHOW_ADDBOOKMARK:
+ if (operation.alter) {
+ return this.sendConsoleShowCommand(tab, 'addbookmark ' + tab.title);
+ }
+ return this.sendConsoleShowCommand(tab, 'addbookmark ');
case operations.FIND_START:
return browser.tabs.sendMessage(tab.id, {
type: messages.CONSOLE_SHOW_FIND