anticipate tab updating away from a supported site

This commit is contained in:
buzz-lightsnack-2007 2024-04-28 11:59:55 +08:00
parent 7380a326a3
commit 8ce5ca7137

View file

@ -12,7 +12,7 @@ class IconIndicator {
static update(state = false) {
(Image.get(((state) ? `default` : 'disabled'))).then((ICON) => {
(Tabs.query(null, 0)).then((DATA) => {
BrowserIcon.set({"Icon": ICON}, {"tabId": DATA.id});
BrowserIcon.set({"Icon": ICON});
});
})
}
@ -28,7 +28,7 @@ class IconIndicator {
Indicate that the website isn't supported through icon change.
*/
static async disable() {
// IconIndicator.update(false);
IconIndicator.update(false);
}
}