Roo.bootstrap.version = (
function() {
var ret=3;
- Roo.each(document.styleSheets[0], function(s) {
- if (s.href.match(/css-bootstrap4/)) {
+ Roo.each(document.styleSheets, function(s) {
+ if (typeof(s.href) != 'undefined' && s.href.match(/css-bootstrap4/)) {
ret=4;
}
});
return ret;
-})();
\ No newline at end of file
+})();
\ No newline at end of file