Fix #5681 - fix bootstrap4 detection
[roojs1] / Roo / bootstrap / version.js
index f0ed1a1..7d4b3cb 100644 (file)
@@ -6,10 +6,10 @@
 Roo.bootstrap.version = (
         function() {
                 var ret=3;
-                Roo.each(document.styleSheets[0], function(s) {
+                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