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