mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
This fixes test-in-console, which was never completing test runs because the page would reload constantly (or something).
16 lines
430 B
JavaScript
16 lines
430 B
JavaScript
WebApp = {
|
|
|
|
_isCssLoaded: function () {
|
|
if (document.styleSheets.length === 0)
|
|
return true;
|
|
|
|
return _.find(document.styleSheets, function (sheet) {
|
|
if (sheet.cssText && !sheet.cssRules) // IE8
|
|
return !sheet.cssText.match(/meteor-css-not-found-error/);
|
|
return !_.find(sheet.cssRules, function (rule) {
|
|
return rule.selectorText === '.meteor-css-not-found-error';
|
|
});
|
|
});
|
|
}
|
|
};
|