We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12087f7 commit 399d9f1Copy full SHA for 399d9f1
lib/icon.js
@@ -69,11 +69,12 @@ function updateIcon(url, tabId) {
69
}
70
if (url === undefined) { //updateIcon()
71
try { //FireFox
72
- browser.tabs.query({active: true}).then(tabs => {
+ browser.tabs.query({active: true, currentWindow: true}).then(tabs => {
73
for (let tab of tabs) {
74
if (tab.url === undefined) return;
75
//console.log(tab.url)
76
updateIcon(tab.url, tab.id);
77
+ return;
78
79
},function(){});
80
return;
@@ -366,6 +367,6 @@ function InitializeIconHandlers() {
366
367
delete saved_last_url[tabId];
368
});
369
chrome.windows.onFocusChanged.addListener(function(windowId) {
- if (windowId > 0) updateIcon();
370
+ updateIcon();
371
372
0 commit comments