未验证 提交 86026807 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #16856 from takahirox/SupportsSessionCatch

WebVR: Catch xr.supportsSession() rejection
......@@ -136,7 +136,7 @@ var WEBVR = {
stylizeElement( button );
navigator.xr.supportsSession( 'immersive-vr' ).then( showEnterXR );
navigator.xr.supportsSession( 'immersive-vr' ).then( showEnterXR ).catch( showVRNotFound );
return button;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册