diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/background/tabs.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/background/tabs.js b/src/background/tabs.js index a908d17..2bf780a 100644 --- a/src/background/tabs.js +++ b/src/background/tabs.js @@ -113,11 +113,12 @@ const selectLastTab = () => { const selectPrevSelTab = () => { let tmpPrevSelTab = null; - return browser.tabs.query({ currentWindow: true, active: true }).then((tabs) => { - tmpPrevSelTab = tabs[0].id; - browser.tabs.update(prevSelTab, { active: true }); - prevSelTab = tmpPrevSelTab; - }); + return browser.tabs.query({ currentWindow: true, active: true }).then( + (tabs) => { + tmpPrevSelTab = tabs[0].id; + browser.tabs.update(prevSelTab, { active: true }); + prevSelTab = tmpPrevSelTab; + }); }; const reload = (current, cache) => { |