Sfoglia il codice sorgente

display ERR in the icon if an error happens in the background page

Gildas 7 anni fa
parent
commit
462c1b27b6
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      extension/ui/bg/ui.js

+ 3 - 1
extension/ui/bg/ui.js

@@ -124,7 +124,9 @@ singlefile.ui = (() => {
 			};
 			refreshBadge(tabId);
 		} catch (error) {
-			if (!error) {
+			if (error) {
+				onTabError(tabId);
+			} else {
 				tabs[tabId] = {
 					id: tabId,
 					text: "↻",