Browse Source

Clean up WebVR.js

Takahiro 5 years ago
parent
commit
63f11a7305
1 changed files with 6 additions and 0 deletions
  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;