Skip to content

Commit

Permalink
fix build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
cabanier committed Dec 12, 2023
1 parent d1a057f commit b378d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/scene/a-scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ class AScene extends AEntity {
var xrInit;

// Don't enter VR if already in VR.
if (useOfferSession && navigator.xr.offerSession === undefined) { return Promise.resolve('OfferSession is not supported.'); }
if (useOfferSession && navigator.xr === undefined && navigator.xr.offerSession === undefined) { return Promise.resolve('OfferSession is not supported.'); }
if (self.usedOfferSession && useOfferSession) { return Promise.resolve('OfferSession was already called.'); }
if (this.is('vr-mode')) { return Promise.resolve('Already in VR.'); }

Expand Down

0 comments on commit b378d9e

Please sign in to comment.