Explorar o código

navigator.mozGetVRDevices check is not necessary anymore since Firefox dropped the prefix

Diego Marcos %!s(int64=10) %!d(string=hai) anos
pai
achega
407bec5fb5
Modificáronse 1 ficheiros con 0 adicións e 4 borrados
  1. 0 4
      examples/js/controls/VRControls.js

+ 0 - 4
examples/js/controls/VRControls.js

@@ -34,10 +34,6 @@ THREE.VRControls = function ( object, callback ) {
 
 		navigator.getVRDevices().then( onVRDevices );
 
-	} else if ( navigator.mozGetVRDevices !== undefined ) {
-
-		navigator.mozGetVRDevices( onVRDevices );
-
 	} else if ( callback !== undefined ) {
 
 		callback( 'Your browser is not VR Ready' );