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.
2 parents b6cb074 + 36429a0 commit 22ed675Copy full SHA for 22ed675
examples/js/vr/HelioWebXRPolyfill.js
@@ -2,9 +2,7 @@
2
* @author mvilledieu / http://github.com/mvilledieu
3
*/
4
5
-if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
6
-
7
- if ( 'isSessionSupported' in navigator.xr ) return;
+if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator && 'isSessionSupported' in navigator.xr === false) {
8
9
console.log( "Helio WebXR Polyfill (Lumin 0.97.0)" );
10
@@ -14,7 +12,7 @@ if ( /(Helio)/g.test( navigator.userAgent ) && "xr" in navigator ) {
14
12
15
13
if (
16
"supportsSession" in navigator.xr === false &&
17
- "supportsSessionMode" in navigator.xr
+ "supportsSessionMode" in navigator.xr
18
) {
19
20
navigator.xr.supportsSession = function ( /*sessionType*/ ) {
0 commit comments