浏览代码

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

Diego Marcos 10 年之前
父节点
当前提交
407bec5fb5
共有 1 个文件被更改,包括 0 次插入4 次删除
  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' );