浏览代码

WebVR: Removed unnecessary WebXR check.

Mr.doob 5 年之前
父节点
当前提交
1d4da64819
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/js/vr/WebVR.js

+ 1 - 1
examples/js/vr/WebVR.js

@@ -169,7 +169,7 @@ THREE.WEBVR = {
 
 		}
 
-		if ( 'xr' in navigator && 'isSessionSupported' in navigator.xr ) {
+		if ( 'xr' in navigator ) {
 
 			var button = document.createElement( 'button' );
 			button.style.display = 'none';