cjss-group / CJSS

A CSS based web framework
https://cjss.js.org/
MIT License
670 stars 20 forks source link

Fix #15: don't access rules from foreign sheets #18

Closed c-harding closed 5 years ago

c-harding commented 5 years ago

This stops the crash that occurs when cross-domain CSS imports are used, such as for Google Fonts, by checking whether .cssRules exists (Chrome), and whether accessing it is a SecurityError (Firefox).

Please could you check if this crash occurred/is fixed in Edge too?

c-harding commented 5 years ago

@scottkellum I’ve merged the changes from #17, so this should work fine now

scottkellum commented 5 years ago

🙏 thank you!