From 1f1b6cb36023a79e5b930a4b2947a5b0c04ccb7e Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Fri, 20 Jul 2018 11:33:17 +0100 Subject: [PATCH] Updated WebVR.js --- examples/js/vr/WebVR.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/js/vr/WebVR.js b/examples/js/vr/WebVR.js index e1a7dcf6a5..501ae0d0b6 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; -- GitLab