Răsfoiți Sursa

remove breakpoint

Gildas 3 ani în urmă
părinte
comite
e88a69f617
1 a modificat fișierele cu 1 adăugiri și 5 ștergeri
  1. 1 5
      src/single-file/single-file-helper.js

+ 1 - 5
src/single-file/single-file-helper.js

@@ -141,11 +141,7 @@ function preProcessDoc(doc, win, options) {
 			invalidElements.set(element, placeHolderElement);
 			element.replaceWith(placeHolderElement);
 		});
-		try {
-			elementsInfo = getElementsInfo(win, doc, doc.documentElement, options);
-		} catch (error) {
-			debugger;
-		}
+		elementsInfo = getElementsInfo(win, doc, doc.documentElement, options);
 		if (options.moveStylesInHead) {
 			doc.querySelectorAll("body style, body ~ style").forEach(element => {
 				const computedStyle = win.getComputedStyle(element);