Sfoglia il codice sorgente

Not only iPhone run this amazing OS.

Raanan Weber 9 anni fa
parent
commit
b5a2dad3e7
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.
             //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.
             //ua sniffing is the tool of the devil.
             this._badOS = regexp.test(navigator.userAgent);
             this._badOS = regexp.test(navigator.userAgent);