Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bartveneman committed Mar 15, 2020
1 parent e89ac6e commit afadea6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ module.exports = async (url, {waitUntil = 'networkidle0'} = {}) => {
// See: https://developer.mozilla.org/en-US/docs/Web/API/CSSRule/cssText
const styleSheetsApiCss = await page.evaluate(() => {
return [...document.styleSheets]
// Only take the stylesheets without href (BUT WHY)
// Only take the stylesheets without href, because those with href are
// <link> tags, and we already tackled those with the Coverage API
.filter(stylesheet => stylesheet.href === null)
.map(stylesheet => {
return {
Expand Down

0 comments on commit afadea6

Please sign in to comment.