浏览代码

Clean up WebVR.js

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

+ 6 - 0
examples/js/vr/WebVR.js

@@ -177,11 +177,17 @@ THREE.WEBVR = {
 			stylizeElement( button );
 			stylizeElement( button );
 
 
 			navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
 			navigator.xr.isSessionSupported( 'immersive-vr' ).then( funciton ( supported ) {
+
 				if ( supported ) {
 				if ( supported ) {
+
 					showEnterXR();
 					showEnterXR();
+
 				} else {
 				} else {
+
 					showXRNotFound();
 					showXRNotFound();
+
 				}
 				}
+
 			} );
 			} );
 
 
 			return button;
 			return button;