CSSVacuum icon indicating copy to clipboard operation
CSSVacuum copied to clipboard

Exception on some sites - Failed to read the 'cssRules' property from 'CSSStyleSheet'

Open mwanchap opened this issue 6 years ago • 0 comments

Hey there,

I've tried CSSVacuum (using the Chrome store version) on a bunch of different sites and often it works fine, except for the one site I actually want to use it for :( It's behind a login so I can't link you to it, but another example of a site it doesn't work on for me is this one: https://www.centrepointalliance.com.au/?CSSVacuum.

I see the following exception logged in the console:

Uncaught DOMException: Failed to read the 'cssRules' property from 'CSSStyleSheet': Cannot access rules
    at CSSStyleSheet.<anonymous> (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/cssvacuum.js:127:13)
    at Function.each (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/lib/jquery-2.0.3.min.js:2:4575)
    at CSSVacuum.browseOllivanders (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/cssvacuum.js:126:7)
    at HTMLDocument.<anonymous> (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/cssvacuum.js:52:13)
    at l (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/lib/jquery-2.0.3.min.js:2:24882)
    at Object.fireWith [as resolveWith] (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/lib/jquery-2.0.3.min.js:2:25702)
    at Function.ready (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/lib/jquery-2.0.3.min.js:2:2900)
    at S (chrome-extension://maellbbeahlpainnadomcgbcgmhjkbac/lib/jquery-2.0.3.min.js:2:553)

mwanchap avatar Oct 18 '19 00:10 mwanchap