Fix #5681 - fix bootstrap4 detection
[roojs1] / Roo / bootstrap / version.js
index 1bf5d99..7d4b3cb 100644 (file)
@@ -6,8 +6,10 @@
 Roo.bootstrap.version = (
         function() {
                 var ret=3;
-                Roo.each(document.styleSheets[0], function(s) {
-                    if (s.href.match(/css-bootstrap4/)) ret=4;
+                Roo.each(document.styleSheets, function(s) {
+                    if (s.href.match(/css-bootstrap4/)) {
+                        ret=4;
+                    }
                 });
         return ret;
-})();
\ No newline at end of file
+})(); 
\ No newline at end of file