diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-09 16:56:31 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-09 20:03:06 +0900 |
commit | 3d35db9fc1f1af20867bfc235e962667f8615b6e (patch) | |
tree | cf9017f09321d05270c3ba9787061d03473effac /src/background | |
parent | e15de17598b222f16c2eb9c4aa2e47610bc61ed9 (diff) |
send message to content instead of response
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/index.js | 5 |
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(); }; |