mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix eternal reload on pages with no stylesheets.
This fixes test-in-console, which was never completing test runs because the page would reload constantly (or something).
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
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/);
|
||||
|
||||
Reference in New Issue
Block a user