aboutsummaryrefslogtreecommitdiff
path: root/src/background/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/index.js')
-rw-r--r--src/background/index.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/background/index.js b/src/background/index.js
index b2182f0..171f90e 100644
--- a/src/background/index.js
+++ b/src/background/index.js
@@ -17,10 +17,7 @@ const keyPressHandle = (request, sender) => {
if (actions.isBackgroundAction(action.type)) {
return doBackgroundAction(sender, action);
} else if (actions.isContentAction(action.type)) {
- return Promise.resolve({
- type: 'response.action',
- action: action
- });
+ return browser.tabs.sendMessage(sender.tab.id, action);
}
return Promise.resolve();
};