Bläddra i källkod

removed debugging code

Gildas 5 år sedan
förälder
incheckning
0e2cb1995f
1 ändrade filer med 0 tillägg och 4 borttagningar
  1. 0 4
      lib/single-file/single-file-core.js

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

@@ -916,15 +916,11 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
 			async function processElement(element, stylesheetInfo, stylesheets, baseURI, options, workStyleElement) {
 				stylesheets.set(element, stylesheetInfo);
 				let stylesheetContent = await getStylesheetContent(element, baseURI, options, workStyleElement);
-				if (element.href && element.href.includes("style.css")) {
-					debugger
-				}
 				const match = stylesheetContent.match(/^@charset\s+"([^"]*)";/i);
 				if (match && match[1] && match[1] != options.charset) {
 					options.charset = match[1];
 					stylesheetContent = await getStylesheetContent(element, baseURI, options, workStyleElement);
 				}
-				if (element.href && element.href.includes("styles.css")) { }
 				let stylesheet;
 				try {
 					stylesheet = cssTree.parse(Util.removeCssComments(stylesheetContent));