check ifdef for bootstrap version
[roojs1] / Roo / bootstrap / version.js
index 7d4b3cb..555a5ab 100644 (file)
@@ -7,7 +7,7 @@ Roo.bootstrap.version = (
         function() {
                 var ret=3;
                 Roo.each(document.styleSheets, function(s) {
-                    if (s.href.match(/css-bootstrap4/)) {
+                    if (typeof(s.href) != 'undefined' && s.href.match(/css-bootstrap4/)) {
                         ret=4;
                     }
                 });