Fix linter error
This commit is contained in:
parent
6fc5d06205
commit
70a47fdaee
1 changed files with 2 additions and 4 deletions
|
@ -1,12 +1,10 @@
|
|||
let prevSelTab = 1;
|
||||
let currSelTab = 1;
|
||||
|
||||
browser.tabs.onActivated.addListener(tabChangeHandler);
|
||||
|
||||
function tabChangeHandler(activeInfo) {
|
||||
browser.tabs.onActivated.addListener((activeInfo) => {
|
||||
prevSelTab = currSelTab;
|
||||
currSelTab = activeInfo.tabId;
|
||||
}
|
||||
});
|
||||
|
||||
const closeTab = (id) => {
|
||||
return browser.tabs.remove(id);
|
||||
|
|
Reference in a new issue