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

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

@@ -305,7 +305,6 @@ const SingleFileCore = (() => {
 		async inlineStylesheets(initialization) {
 			await Promise.all(Array.from(this.doc.querySelectorAll("style")).map(async styleElement => {
 				let stylesheetContent = initialization ? await DomProcessorHelper.resolveImportURLs(styleElement.textContent, this.baseURI) : await DomProcessorHelper.processStylesheet(styleElement.textContent, this.baseURI);
-				// stylesheetContent = DomUtil.wrapMediaQuery(stylesheetContent, styleElement.media);
 				styleElement.textContent = stylesheetContent;
 			}));
 		}
@@ -322,7 +321,7 @@ const SingleFileCore = (() => {
 				const stylesheetContent = await DomProcessorHelper.resolveLinkStylesheetURLs(linkElement.href, this.baseURI, linkElement.media);
 				const styleElement = this.doc.createElement("style");
 				styleElement.textContent = stylesheetContent;
-				linkElement.parentElement.replaceChild(styleElement, linkElement);				
+				linkElement.parentElement.replaceChild(styleElement, linkElement);
 			}));
 		}
 	}