From 3d35db9fc1f1af20867bfc235e962667f8615b6e Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 9 Sep 2017 16:56:31 +0900 Subject: send message to content instead of response --- src/background/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/background') 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(); }; -- cgit v1.2.3