File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 44
55if ( / ( H e l i o ) / g. test ( navigator . userAgent ) && "xr" in navigator ) {
66
7- if ( 'isSessionSupported' in navigator . xr ) {
8- return ;
9- }
7+ if ( 'isSessionSupported' in navigator . xr ) return ;
108
119 console . log ( "Helio WebXR Polyfill (Lumin 0.97.0)" ) ;
1210
@@ -19,7 +17,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
1917 "supportsSessionMode" in navigator . xr
2018 ) {
2119
22- navigator . xr . supportsSession = function ( sessionType ) {
20+ navigator . xr . supportsSession = function ( /* sessionType*/ ) {
2321
2422 // Force using immersive-ar
2523 return navigator . xr . supportsSessionMode ( 'immersive-ar' ) ;
@@ -32,7 +30,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
3230
3331 const tempRequestSession = navigator . xr . requestSession . bind ( navigator . xr ) ;
3432
35- navigator . xr . requestSession = function ( sessionType ) {
33+ navigator . xr . requestSession = function ( /* sessionType*/ ) {
3634
3735 return new Promise ( function ( resolve , reject ) {
3836
You can’t perform that action at this time.
0 commit comments