David Catuhe преди 8 години
родител
ревизия
c40aefc37c

Файловите разлики са ограничени, защото са твърде много
+ 2660 - 2660
dist/preview release/babylon.d.ts


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/preview release/babylon.js


+ 2 - 6
dist/preview release/babylon.max.js

@@ -7429,13 +7429,9 @@ var BABYLON;
                 this.initWebVR();
             }
             //Detect if we are running on a faulty buggy OS.
-            var regexpBadOs = /AppleWebKit.*10.[\d] Mobile/;
-            //ua sniffing is the tool of the devil.
-            this._badOS = regexpBadOs.test(navigator.userAgent);
+            this._badOS = /AppleWebKit.*10.[\d] Mobile/.test(navigator.userAgent);
             //Detect if we are running on a faulty buggy desktop OS.
-            var regexpBadDesktopOS = /AppleWebKit.*10.[\d]/;
-            //ua sniffing is the tool of the devil.
-            this._badDesktopOS = regexpBadDesktopOS.test(navigator.userAgent);
+            this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
             BABYLON.Tools.Log("Babylon.js engine (v" + Engine.Version + ") launched");
         }
         Object.defineProperty(Engine, "LastCreatedEngine", {

Файловите разлики са ограничени, защото са твърде много
+ 2660 - 2660
dist/preview release/babylon.module.d.ts


Файловите разлики са ограничени, защото са твърде много
+ 1 - 1
dist/preview release/babylon.worker.js


+ 2 - 6
src/babylon.engine.ts

@@ -871,14 +871,10 @@
             }
 
             //Detect if we are running on a faulty buggy OS.
-            var regexpBadOs = /AppleWebKit.*10.[\d] Mobile/
-            //ua sniffing is the tool of the devil.
-            this._badOS = regexpBadOs.test(navigator.userAgent);
+            this._badOS = /AppleWebKit.*10.[\d] Mobile/.test(navigator.userAgent);
 
             //Detect if we are running on a faulty buggy desktop OS.
-            var regexpBadDesktopOS = /AppleWebKit.*10.[\d]/
-            //ua sniffing is the tool of the devil.
-            this._badDesktopOS = regexpBadDesktopOS.test(navigator.userAgent);
+            this._badDesktopOS = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
 
             Tools.Log("Babylon.js engine (v" + Engine.Version + ") launched");
         }