We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2722111 commit 1cf2f74Copy full SHA for 1cf2f74
src/HelioWebXRPolyfill.js
@@ -115,13 +115,15 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
115
116
res.forEach( function (xrInputSource ) {
117
118
- Object.defineProperty( xrInputSource, "targetRaySpace", {
119
- get: function () {
+ if (!('targetRaySpace' in xrInputSource)) {
+ Object.defineProperty( xrInputSource, "targetRaySpace", {
120
+ get: function () {
121
- return xrInputSource;
122
+ return xrInputSource;
123
- }
124
- } );
+ }
125
+ } );
126
127
128
} );
129
0 commit comments