Jelajahi Sumber

removed debugging code

Former-commit-id: 0e2cb1995faebaeb848a76d7a220546d3f25be7c
Gildas 5 tahun lalu
induk
melakukan
0bd468c770
1 mengubah file dengan 0 tambahan dan 4 penghapusan
  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));