From b16a57a4e388ca57f30b98f455279f0340598c14 Mon Sep 17 00:00:00 2001 From: Julien Finet Date: Mon, 1 Jan 2024 17:28:03 +0100 Subject: [PATCH] docs(geometryviewer): fix GeometryViewer on Firefox without WebXR --- Examples/Applications/GeometryViewer/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Examples/Applications/GeometryViewer/index.js b/Examples/Applications/GeometryViewer/index.js index d9846eadf0c..fc10a053aed 100644 --- a/Examples/Applications/GeometryViewer/index.js +++ b/Examples/Applications/GeometryViewer/index.js @@ -103,7 +103,7 @@ if (requestedXrSessionType === XrSessionTypes.LookingGlassVR) { // eslint-disable-next-line no-new new obj.LookingGlassWebXRPolyfill(); }); -} else if (requestedXrSessionType === null) { +} else if (requestedXrSessionType === null && navigator.xr !== undefined) { // Guess the session type based on what XR session(s) the device supports navigator.xr.isSessionSupported('immersive-vr').then((vrSupported) => { if (vrSupported) {