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

Updated WebVR.js

上级 24cb9ac6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册