Skip to content

Commit c41d4fe

Browse files
author
Avaer Kazmer
committed
Do not run any webxr polyfill code in helio
1 parent dd9b922 commit c41d4fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/webxr-polyfill.module.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
* THE SOFTWARE.
9898
*/
9999

100+
if (!/(Helio)/g.test(navigator.userAgent)) {
101+
100102
const _global = typeof global !== 'undefined' ? global :
101103
typeof self !== 'undefined' ? self :
102104
typeof window !== 'undefined' ? window : {};
@@ -6132,6 +6134,6 @@ class WebXRPolyfill {
61326134
}
61336135
}
61346136

6135-
if (!/(Helio)/g.test(navigator.userAgent)) {
6136-
new WebXRPolyfill();
6137+
new WebXRPolyfill();
6138+
61376139
}

0 commit comments

Comments
 (0)