aboutsummaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/operation.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/actions/operation.js b/src/actions/operation.js
index 352bfac..8ca0f4b 100644
--- a/src/actions/operation.js
+++ b/src/actions/operation.js
@@ -2,18 +2,18 @@ import operations from '../operations';
import * as tabs from '../background/tabs';
import * as zooms from '../background/zooms';
-export function exec(operation, sender) {
+export function exec(operation, tab) {
switch (operation.type) {
case operations.TABS_CLOSE:
- return tabs.closeTab(sender.tab.id);
+ return tabs.closeTab(tab.id);
case operations.TABS_REOPEN:
return tabs.reopenTab();
case operations.TABS_PREV:
- return tabs.selectPrevTab(sender.tab.index, operation.count);
+ return tabs.selectPrevTab(tab.index, operation.count);
case operations.TABS_NEXT:
- return tabs.selectNextTab(sender.tab.index, operation.count);
+ return tabs.selectNextTab(tab.index, operation.count);
case operations.TABS_RELOAD:
- return tabs.reload(sender.tab, operation.cache);
+ return tabs.reload(tab, operation.cache);
case operations.ZOOM_IN:
return zooms.zoomIn();
case operations.ZOOM_OUT:
@@ -21,7 +21,7 @@ export function exec(operation, sender) {
case operations.ZOOM_NEUTRAL:
return zooms.neutral();
default:
- return browser.tabs.sendMessage(sender.tab.id, {
+ return browser.tabs.sendMessage(tab.id, {
type: 'require.content.operation',
operation
});