diff --git a/examples/js/vr/WebVR.js b/examples/js/vr/WebVR.js index e1a7dcf6a508b90ad724881c401cbad6bec77754..501ae0d0b639dd86984d344b49bad20772b285a3 100644 --- a/examples/js/vr/WebVR.js +++ b/examples/js/vr/WebVR.js @@ -78,7 +78,7 @@ var WEBVR = { if ( currentSession === null ) { - device.requestSession( { exclusive: true } ).then( onSessionStarted ); + device.requestSession( { immersive: true, exclusive: true /* DEPRECATED */ } ).then( onSessionStarted ); } else { @@ -137,11 +137,9 @@ var WEBVR = { navigator.xr.requestDevice().then( function ( device ) { - device.supportsSession( { exclusive: true } ).then( function () { - - showEnterXR( device ); - - } ).catch( showVRNotFound ); + device.supportsSession( { immersive: true, exclusive: true /* DEPRECATED */ } ) + .then( function () { showEnterXR( device ); } ) + .catch( showVRNotFound ); } ).catch( showVRNotFound ); @@ -191,7 +189,7 @@ var WEBVR = { } - } ); + } ).catch( showVRNotFound ); return button;