提交 1f1b6cb3 编写于 作者: M Mr.doob

Updated WebVR.js

上级 24cb9ac6
...@@ -78,7 +78,7 @@ var WEBVR = { ...@@ -78,7 +78,7 @@ var WEBVR = {
if ( currentSession === null ) { if ( currentSession === null ) {
device.requestSession( { exclusive: true } ).then( onSessionStarted ); device.requestSession( { immersive: true, exclusive: true /* DEPRECATED */ } ).then( onSessionStarted );
} else { } else {
...@@ -137,11 +137,9 @@ var WEBVR = { ...@@ -137,11 +137,9 @@ var WEBVR = {
navigator.xr.requestDevice().then( function ( device ) { navigator.xr.requestDevice().then( function ( device ) {
device.supportsSession( { exclusive: true } ).then( function () { device.supportsSession( { immersive: true, exclusive: true /* DEPRECATED */ } )
.then( function () { showEnterXR( device ); } )
showEnterXR( device ); .catch( showVRNotFound );
} ).catch( showVRNotFound );
} ).catch( showVRNotFound ); } ).catch( showVRNotFound );
...@@ -191,7 +189,7 @@ var WEBVR = { ...@@ -191,7 +189,7 @@ var WEBVR = {
} }
} ); } ).catch( showVRNotFound );
return button; return button;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册