Gildas 7 лет назад
Родитель
Сommit
ed46f6675e
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      lib/single-file/doc-helper.js

+ 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;
 		}
 	}