Browse Source

Clean up WebVR.js

Takahiro 6 năm trước cách đây
mục cha
commit
63f11a7305
1 tập tin đã thay đổi với 6 bổ sung0 xóa
  1. 6 0
      examples/js/vr/WebVR.js

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

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