Explorar o código

Not only iPhone run this amazing OS.

Raanan Weber %!s(int64=9) %!d(string=hai) anos
pai
achega
b5a2dad3e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/babylon.engine.ts

+ 1 - 1
src/babylon.engine.ts

@@ -653,7 +653,7 @@
             }
 
             //Detect if we are running on a faulty buggy OS.
-            var regexp = /iPhone.*10.[\d] Mobile/
+            var regexp = /AppleWebKit.*10.[\d] Mobile/
             //ua sniffing is the tool of the devil.
             this._badOS = regexp.test(navigator.userAgent);