diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-02 21:48:26 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2017-09-02 21:48:26 +0900 |
commit | 68753b3660f0d6996c9b5a3c433d2cdc275dd4e4 (patch) | |
tree | e66642d7f1164f70d3872f50b65aa6b9d7f20627 /src/background | |
parent | 30999e0c651242d8071dca6a90f5739f22ac9afb (diff) |
response by type
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/background/index.js b/src/background/index.js index d8047a6..8f2e44c 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -17,7 +17,10 @@ const keyPressHandle = (request, sender, sendResponse) => { if (actions.isBackgroundAction(action[0])) { doBackgroundAction(sender, action); } else if (actions.isContentAction(action[0])) { - sendResponse(action); + sendResponse({ + type: 'response.action', + action: action + }); } }; |