Procházet zdrojové kódy

fixed URL resolving issue with inlined stylesheets

Gildas před 7 roky
rodič
revize
ad3f4c95a1
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      lib/single-file/single-file-core.js

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

@@ -737,6 +737,7 @@ this.SingleFileCore = this.SingleFileCore || (() => {
 		}
 		}
 
 
 		static async processStylesheet(stylesheetContent, baseURI) {
 		static async processStylesheet(stylesheetContent, baseURI) {
+			stylesheetContent = DomProcessorHelper.resolveStylesheetURLs(stylesheetContent, baseURI);
 			const urlFunctions = DomUtil.getUrlFunctions(stylesheetContent);
 			const urlFunctions = DomUtil.getUrlFunctions(stylesheetContent);
 			await Promise.all(urlFunctions.map(async urlFunction => {
 			await Promise.all(urlFunctions.map(async urlFunction => {
 				let resourceURL = DomUtil.matchURL(urlFunction);
 				let resourceURL = DomUtil.matchURL(urlFunction);