diff --git a/examples/js/vr/WebVR.js b/examples/js/vr/WebVR.js index 6c297d9b562ec540d855efdbd89ceb553ef3f01c..69985c972f3e1f0377e5d1e39861245aaed37047 100644 --- a/examples/js/vr/WebVR.js +++ b/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;