Procházet zdrojové kódy

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

Gildas před 7 roky
rodič
revize
462c1b27b6
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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: "↻",