You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 

18 lines
384 B

import * as tabs from './tabs';
const KEY_MAP = {
'tabs.prev': 104,
'tabs.next': 108
};
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
switch (request.key) {
case KEY_MAP['tabs.prev']:
tabs.selectPrevTab(sender.tab.index);
break;
case KEY_MAP['tabs.next']:
tabs.selectNextTab(sender.tab.index);
break;
}
sendResponse();
});