From 3195b27260a2aa554fe28d5db3da157cb1f5eb1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Auswo=CC=88ger?= Date: Sat, 10 Jun 2017 23:39:44 +0200 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20load=20non-CORS=20external=20st?= =?UTF-8?q?yles=20via=20XHR,=20#46?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cq-prolyfill.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cq-prolyfill.js b/cq-prolyfill.js index 727e80a..250f726 100644 --- a/cq-prolyfill.js +++ b/cq-prolyfill.js @@ -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; }