소스 검색

wait for the promise to be resolved

Gildas 7 년 전
부모
커밋
c1b578e0d3
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      lib/single-file/single-file-core.js

+ 3 - 3
lib/single-file/single-file-core.js

@@ -827,9 +827,9 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 
 		async processStylesheets() {
-			await Promise.all(Array.from(this.stylesheets).map(([, stylesheetInfo]) => {
-				ProcessorHelper.processStylesheet(stylesheetInfo.stylesheet.children, this.baseURI, this.options, this.cssVariables, this.batchRequest);
-			}));
+			await Promise.all(Array.from(this.stylesheets).map(([, stylesheetInfo]) =>
+				ProcessorHelper.processStylesheet(stylesheetInfo.stylesheet.children, this.baseURI, this.options, this.cssVariables, this.batchRequest)
+			));
 		}
 
 		replaceStylesheets() {