Skip to content

Commit

Permalink
docs(geometryviewer): fix GeometryViewer on Firefox without WebXR
Browse files Browse the repository at this point in the history
  • Loading branch information
finetjul authored and floryst committed Jan 3, 2024
1 parent 887852c commit b16a57a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Examples/Applications/GeometryViewer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b16a57a

Please sign in to comment.