Skip to content

Commit e1f9510

Browse files
committed
HelioWebXRPolyfill: Clean up.
1 parent 88056ee commit e1f9510

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

examples/js/vr/HelioWebXRPolyfill.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44

55
if ( /(Helio)/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

0 commit comments

Comments
 (0)