single-file-core 1.1.75 → 1.1.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/helper.js +1 -1
- package/package.json +1 -1
package/core/helper.js
CHANGED
|
@@ -276,7 +276,7 @@ function getElementsInfo(win, doc, element, options, data = { usedFonts: new Map
|
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
function getStylesheetsContent(styleSheets) {
|
|
279
|
-
return styleSheets ? Array.from(styleSheets).map(stylesheet => Array.from(stylesheet.cssRules).map(cssRule => cssRule.cssText).join("\n")) :
|
|
279
|
+
return styleSheets ? Array.from(styleSheets).map(stylesheet => Array.from(stylesheet.cssRules).map(cssRule => cssRule.cssText).join("\n")) : [];
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
function getResourcesInfo(win, doc, element, options, data, elementHidden, computedStyle) {
|