소스 검색

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);
 		}
 	}