Przeglądaj źródła

wait for the promise to be resolved

Gildas 7 lat temu
rodzic
commit
c1b578e0d3
1 zmienionych plików z 3 dodań i 3 usunięć
  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() {