1
0
Gildas 7 жил өмнө
parent
commit
ed46f6675e

+ 1 - 3
lib/single-file/doc-helper.js

@@ -109,9 +109,7 @@ this.docHelper = this.docHelper || (() => {
 	function getStylesheetContents(doc) {
 		if (doc) {
 			const textData = [];
-			doc.querySelectorAll("style").forEach(styleElement => {
-				textData.push(Array.from(styleElement.sheet.cssRules).map(rule => rule.cssText).join("\n"));
-			});
+			doc.querySelectorAll("style").forEach(styleElement => textData.push(Array.from(styleElement.sheet.cssRules).map(rule => rule.cssText).join("\n")));
 			return textData;
 		}
 	}