aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-02 21:48:26 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-02 21:48:26 +0900
commit68753b3660f0d6996c9b5a3c433d2cdc275dd4e4 (patch)
treee66642d7f1164f70d3872f50b65aa6b9d7f20627 /src/background
parent30999e0c651242d8071dca6a90f5739f22ac9afb (diff)
response by type
Diffstat (limited to 'src/background')
-rw-r--r--src/background/index.js5
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
+ });
}
};