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

HelioWebXRPolyfill: Clean up.

上级 88056ee9
......@@ -4,9 +4,7 @@
if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
if ('isSessionSupported' in navigator.xr) {
return;
}
if ( 'isSessionSupported' in navigator.xr ) return;
console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" );
......@@ -19,7 +17,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
"supportsSessionMode" in navigator.xr
) {
navigator.xr.supportsSession = function ( sessionType ) {
navigator.xr.supportsSession = function ( /*sessionType*/ ) {
// Force using immersive-ar
return navigator.xr.supportsSessionMode( 'immersive-ar' );
......@@ -32,7 +30,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
const tempRequestSession = navigator.xr.requestSession.bind( navigator.xr );
navigator.xr.requestSession = function ( sessionType ) {
navigator.xr.requestSession = function ( /*sessionType*/ ) {
return new Promise( function ( resolve, reject ) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册