瀏覽代碼

log the background error when processing a tab

Gildas 7 年之前
父節點
當前提交
6477a4253c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      extension/ui/bg/ui.js

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

@@ -286,6 +286,7 @@ singlefile.ui = (() => {
 			await singlefile.core.processTab(tab, options);
 			refreshBadge(tabId, getBadgeProperties(tabId, options, "...", [4, 229, 36, 255], "Initializing SingleFile (2/2)"));
 		} catch (error) {
+			console.log(error); // eslint-disable-line no-console
 			onTabError(tabId, options);
 		}
 	}