aboutsummaryrefslogtreecommitdiff
path: root/src/background/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/index.js')
-rw-r--r--src/background/index.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/background/index.js b/src/background/index.js
index cb7a3ff..3fa8553 100644
--- a/src/background/index.js
+++ b/src/background/index.js
@@ -1,4 +1,3 @@
-import * as actions from '../shared/actions';
import * as tabs from './tabs';
import KeyQueue from './key-queue';
import backgroundReducers from '../reducers/background';
@@ -14,11 +13,9 @@ const keyPressHandle = (request, sender) => {
return Promise.resolve();
}
- if (actions.isContentAction(action.type)) {
+ return backgroundReducers(undefined, action, sender).then(() => {
return browser.tabs.sendMessage(sender.tab.id, action);
- } else {
- return backgroundReducers(undefined, action, sender);
- }
+ });
};
const normalizeUrl = (string) => {