We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77a1a0b commit 26818ffCopy full SHA for 26818ff
src/ElementQueries.js
@@ -221,7 +221,9 @@
221
*/
222
this.init = function() {
223
for (var i = 0, j = document.styleSheets.length; i < j; i++) {
224
- readRules(document.styleSheets[i].cssText || document.styleSheets[i].cssRules || document.styleSheets[i].rules);
+ if (document.styleSheets[i].href && document.styleSheets[i].href.indexOf(document.domain) >= 0) {
225
+ readRules(document.styleSheets[i].cssText || document.styleSheets[i].cssRules || document.styleSheets[i].rules);
226
+ }
227
}
228
};
229
0 commit comments