Skip to content

Commit 399d9f1

Browse files
authored
0.18.7 - Hotfix for Firefox
1 parent 12087f7 commit 399d9f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/icon.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ function updateIcon(url, tabId) {
6969
}
7070
if (url === undefined) { //updateIcon()
7171
try { //FireFox
72-
browser.tabs.query({active: true}).then(tabs => {
72+
browser.tabs.query({active: true, currentWindow: true}).then(tabs => {
7373
for (let tab of tabs) {
7474
if (tab.url === undefined) return;
7575
//console.log(tab.url)
7676
updateIcon(tab.url, tab.id);
77+
return;
7778
}
7879
},function(){});
7980
return;
@@ -366,6 +367,6 @@ function InitializeIconHandlers() {
366367
delete saved_last_url[tabId];
367368
});
368369
chrome.windows.onFocusChanged.addListener(function(windowId) {
369-
if (windowId > 0) updateIcon();
370+
updateIcon();
370371
});
371372
}

0 commit comments

Comments
 (0)