From 68753b3660f0d6996c9b5a3c433d2cdc275dd4e4 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sat, 2 Sep 2017 21:48:26 +0900 Subject: response by type --- src/background/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/background') 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 + }); } }; -- cgit v1.2.3