@@ -6,7 +6,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
66
77 console . log ( "Helio WebXR Polyfill (Lumin 0.97.0)" ) ;
88
9- const isHelio96 = navigator . userAgent . includes ( "Chrome/73" ) ;
9+ const isHelio96 = navigator . userAgent . includes ( "Chrome/73" ) ;
1010
1111 // WebXRManager - XR.supportSession() Polyfill - WebVR.js line 147
1212
@@ -32,9 +32,9 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
3232
3333 return new Promise ( function ( resolve , reject ) {
3434
35- const sessionType = ( isHelio96 ? {
35+ const sessionType = ( isHelio96 ? {
3636 mode : 'immersive-ar' // Force using immersive-ar
37- } : 'immersive-ar' ) ;
37+ } : 'immersive-ar' ) ;
3838
3939 tempRequestSession ( sessionType )
4040 . then ( function ( session ) {
@@ -74,11 +74,11 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
7474
7575 // WebXRManager - xrFrame.getPose() Polyfill - line 259
7676
77- const tempGetPose = ( isHelio96 ? null : frame . getPose . bind ( frame ) ) ;
77+ const tempGetPose = ( isHelio96 ? null : frame . getPose . bind ( frame ) ) ;
7878
7979 frame . getPose = function ( targetRaySpace , referenceSpace ) {
8080
81- if ( isHelio96 ) {
81+ if ( isHelio96 ) {
8282
8383 const inputPose = frame . getInputPose (
8484 targetRaySpace ,
@@ -93,7 +93,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
9393
9494 } else {
9595
96- return tempGetPose ( targetRaySpace . gripSpace , referenceSpace ) ;
96+ return tempGetPose ( targetRaySpace . gripSpace , referenceSpace ) ;
9797
9898 }
9999
@@ -113,7 +113,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
113113
114114 const res = tempGetInputSources ( ) ;
115115
116- res . forEach ( function ( xrInputSource ) {
116+ res . forEach ( function ( xrInputSource ) {
117117
118118 Object . defineProperty ( xrInputSource , "targetRaySpace" , {
119119 get : function ( ) {
@@ -141,7 +141,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
141141
142142 // WebXRManager - xrSession.updateRenderState() Polyfill Line 129
143143
144- if ( isHelio96 ) {
144+ if ( isHelio96 ) {
145145
146146 session . updateRenderState = function ( { baseLayer } ) {
147147
0 commit comments