Fix #5681 - fix bootstrap4 detection
[roojs1] / roojs-bootstrap-debug.js
index bcb5ad7..0508448 100644 (file)
@@ -6,13 +6,13 @@
 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;
-})();/*
+})(); /*
  * - LGPL
  *
  * base class for bootstrap elements.