Skip to content

Commit

Permalink
Fix wrong conditions in vr-mode-ui component (#5320)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin authored Jun 30, 2023
1 parent 5dd403d commit b2fc12b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/scene/vr-mode-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ module.exports.Component = registerComponent('vr-mode-ui', {
if (this.enterVREl || this.enterAREl || this.orientationModalEl) { return; }

// Add UI if enabled and not already present.
if (!this.enterVREL && data.enterVREnabled) {
if (!this.enterVREl && data.enterVREnabled) {
if (data.enterVRButton) {
// Custom button.
this.enterVREl = document.querySelector(data.enterVRButton);
Expand All @@ -104,7 +104,7 @@ module.exports.Component = registerComponent('vr-mode-ui', {
}
}

if (!this.enterVREL && data.enterAREnabled) {
if (!this.enterAREl && data.enterAREnabled) {
if (data.enterARButton) {
// Custom button.
this.enterAREl = document.querySelector(data.enterARButton);
Expand Down

0 comments on commit b2fc12b

Please sign in to comment.