Skip to content

Commit

Permalink
Don’t load non-CORS external styles via XHR, #46
Browse files Browse the repository at this point in the history
  • Loading branch information
ausi committed Jun 10, 2017
1 parent 6bae10e commit 3195b27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cq-prolyfill.js
Expand Up @@ -343,7 +343,7 @@ function preprocessSheet(sheet, callback) {
// Do nothing
}
// Check if cssRules is accessible
if (rulesLength !== -1) {
if (rulesLength !== -1 || !sheet.ownerNode.getAttribute('crossorigin')) {
callback();
return;
}
Expand Down

0 comments on commit 3195b27

Please sign in to comment.