Explorar o código

Clean up WebVR.js

Takahiro %!s(int64=5) %!d(string=hai) anos
pai
achega
63f11a7305
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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;