Clean up TAB_FIRST operation
This commit is contained in:
parent
2c97f8a4f3
commit
d0df1a05a1
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue