Kaynağa Gözat

wait for the promise to be resolved

Gildas 7 yıl önce
ebeveyn
işleme
c1b578e0d3
1 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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() {