Browse Source

WebVR: Removed unnecessary WebXR check.

Mr.doob 5 năm trước cách đây
mục cha
commit
1d4da64819
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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';