diff options
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/actions/operation.js | 2 | ||||
-rw-r--r-- | src/background/tabs.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/background/actions/operation.js b/src/background/actions/operation.js index 7c0df4e..074157b 100644 --- a/src/background/actions/operation.js +++ b/src/background/actions/operation.js @@ -21,7 +21,7 @@ const exec = (operation, tab) => { case operations.TAB_NEXT: return tabs.selectNextTab(tab.index, operation.count); case operations.TAB_FIRST: - return tabs.selectFirstTab(tab.index, operation.count); + return tabs.selectFirstTab(); case operations.TAB_RELOAD: return tabs.reload(tab, operation.cache); case operations.ZOOM_IN: diff --git a/src/background/tabs.js b/src/background/tabs.js index 2028503..0567e68 100644 --- a/src/background/tabs.js +++ b/src/background/tabs.js @@ -79,14 +79,14 @@ const selectNextTab = (current, count) => { }); }; -const selectFirstTab = (current, count) => { +const selectFirstTab = () => { return browser.tabs.query({ currentWindow: true }).then((tabs) => { let id = tabs[0].id; return browser.tabs.update(id, { active: true }); }); }; -// const selectFirstTab = (current, count) => { +// const selectLastTab = (current, count) => { // return browser.tabs.query({ currentWindow: true }).then((tabs) => { // let select = tabs.length; // let id = tabs[select].id; |