Gildas 7 лет назад
Родитель
Сommit
1cd3e2d926
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      lib/single-file/single-file-core.js

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

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