Fix selectFirstTab
This commit is contained in:
parent
026fee32d6
commit
2c97f8a4f3
1 changed files with 4 additions and 2 deletions
|
@ -80,8 +80,10 @@ const selectNextTab = (current, count) => {
|
|||
};
|
||||
|
||||
const selectFirstTab = (current, count) => {
|
||||
return browser.tabs.query({ currentWindow: true }).then((tabs) => {
|
||||
let id = tabs[0].id;
|
||||
return browser.tabs.update(id, { active: true });
|
||||
});
|
||||
};
|
||||
|
||||
// const selectFirstTab = (current, count) => {
|
||||
|
|
Reference in a new issue