Quellcode durchsuchen

fixed @import handling issue

Gildas vor 7 Jahren
Ursprung
Commit
9aca4b7911
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      lib/single-file/single-file-core.js

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

@@ -704,7 +704,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 						importedStylesheetContent = DomUtil.wrapMediaQuery(importedStylesheetContent, match.media);
 						if (stylesheetContent.indexOf(cssImport) != -1) {
 							importedStylesheetContent = DomProcessorHelper.resolveStylesheetURLs(importedStylesheetContent, styleSheetUrl);
-							DomProcessorHelper.resolveImportURLs(importedStylesheetContent, styleSheetUrl, options);
+							importedStylesheetContent = await DomProcessorHelper.resolveImportURLs(importedStylesheetContent, styleSheetUrl, options);
 							stylesheetContent = stylesheetContent.replace(cssImport, importedStylesheetContent);
 						}
 					}