Fix selectFirstTab

jh-changes
Daniel Campoverde 7 years ago
parent 026fee32d6
commit 2c97f8a4f3
  1. 2
      src/background/tabs.js

@ -80,8 +80,10 @@ const selectNextTab = (current, count) => {
}; };
const selectFirstTab = (current, count) => { const selectFirstTab = (current, count) => {
return browser.tabs.query({ currentWindow: true }).then((tabs) => {
let id = tabs[0].id; let id = tabs[0].id;
return browser.tabs.update(id, { active: true }); return browser.tabs.update(id, { active: true });
});
}; };
// const selectFirstTab = (current, count) => { // const selectFirstTab = (current, count) => {