diff options
Diffstat (limited to 'src/background/index.js')
-rw-r--r-- | src/background/index.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/background/index.js b/src/background/index.js index 8544c0f..f3bd65a 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -26,6 +26,12 @@ const keyDownHandle = (request, sender, sendResponse) => { const doBackgroundAction = (sender, action) => { switch(action[0]) { + case actions.TABS_CLOSE: + tabs.closeTab(sender.tab.id); + break; + case actions.TABS_REOPEN: + tabs.reopenTab(); + break; case actions.TABS_PREV: tabs.selectPrevTab(sender.tab.index, actions[1] || 1); break; |