1
0
Эх сурвалжийг харах

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

Gildas 7 жил өмнө
parent
commit
462c1b27b6
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  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: "↻",