Skip to content

Commit

Permalink
Update lingering vr-mode-ui refs
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-liang committed Nov 14, 2023
1 parent 2a38806 commit 3e2768c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/systems/webar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class ARENAWebARUtils {
}

const sceneEl = document.querySelector('a-scene');
const vrModeUI = sceneEl.components['vr-mode-ui'];
const vrModeUI = sceneEl.components['xr-mode-ui'];
const { enterAREl } = vrModeUI;
enterAREl.classList.remove(HIDDEN_CLASS);
enterAREl.removeEventListener('click', vrModeUI.onEnterARButtonClick, true);
Expand Down
3 changes: 1 addition & 2 deletions src/systems/webar/webar-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@ AFRAME.registerComponent('arena-webar-session', {
hideVRButtons() {
const { el } = this;

const { enterAREl } = el.components['vr-mode-ui'];
const { enterAREl, enterVREl } = el.components['xr-mode-ui'];
enterAREl.classList.add(HIDDEN_CLASS);
const { enterVREl } = el.components['vr-mode-ui'];
enterVREl.classList.add(HIDDEN_CLASS);
},

Expand Down

0 comments on commit 3e2768c

Please sign in to comment.