Skip to content

Commit 544bc70

Browse files
committed
only try to read local css stylesheets
1 parent b68b7c9 commit 544bc70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = async (
5353
const styleSheetsApiCss = await page.evaluate(() => {
5454
/* global document */
5555
return [...document.styleSheets]
56+
.filter(stylesheet => stylesheet.href === null)
5657
.map(stylesheet =>
5758
[...stylesheet.cssRules]
5859
.map(cssStyleRule => cssStyleRule.cssText)

0 commit comments

Comments
 (0)