Skip to content

Commit 1cf2f74

Browse files
author
Avaer Kazmer
committed
Hack: more Helio elision
1 parent 2722111 commit 1cf2f74

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/HelioWebXRPolyfill.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,13 +115,15 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
115115

116116
res.forEach( function (xrInputSource ) {
117117

118-
Object.defineProperty( xrInputSource, "targetRaySpace", {
119-
get: function () {
118+
if (!('targetRaySpace' in xrInputSource)) {
119+
Object.defineProperty( xrInputSource, "targetRaySpace", {
120+
get: function () {
120121

121-
return xrInputSource;
122+
return xrInputSource;
122123

123-
}
124-
} );
124+
}
125+
} );
126+
}
125127

126128
} );
127129

0 commit comments

Comments
 (0)