Fix visible links test
This commit is contained in:
parent
70a47fdaee
commit
0056c5fec4
1 changed files with 4 additions and 2 deletions
|
@ -2,8 +2,10 @@ let prevSelTab = 1;
|
||||||
let currSelTab = 1;
|
let currSelTab = 1;
|
||||||
|
|
||||||
browser.tabs.onActivated.addListener((activeInfo) => {
|
browser.tabs.onActivated.addListener((activeInfo) => {
|
||||||
|
return browser.tabs.query({ currentWindow: true }).then((tabs) => {
|
||||||
prevSelTab = currSelTab;
|
prevSelTab = currSelTab;
|
||||||
currSelTab = activeInfo.tabId;
|
currSelTab = activeInfo.tabId;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
const closeTab = (id) => {
|
const closeTab = (id) => {
|
||||||
|
|
Reference in a new issue