Fix visible links test

jh-changes
Daniel Campoverde 7 years ago
parent 70a47fdaee
commit 0056c5fec4
  1. 6
      src/background/tabs.js

@ -2,8 +2,10 @@ let prevSelTab = 1;
let currSelTab = 1;
browser.tabs.onActivated.addListener((activeInfo) => {
prevSelTab = currSelTab;
currSelTab = activeInfo.tabId;
return browser.tabs.query({ currentWindow: true }).then((tabs) => {
prevSelTab = currSelTab;
currSelTab = activeInfo.tabId;
});
});
const closeTab = (id) => {