Explorar o código

fixed @import handling issue

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
9aca4b7911
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 						}
 					}