Skip to content

Commit

Permalink
Don't enter immersive automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mister-ben committed Dec 20, 2023
1 parent aaf320a commit 162d3fa
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/big-vr-play-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ class BigVrPlayButton extends BigPlayButton {
if (window.navigator.xr) {
const sessionInit = {optionalFeatures: ['local-floor', 'bounded-floor', 'hand-tracking']};
const self = this;

window.navigator.xr.isSessionSupported('immersive-vr').then((supportsImmersiveVR) => {
if (supportsImmersiveVR) {
window.navigator.xr.requestSession('immersive-vr', sessionInit)
.then(self.onSessionStarted)
.catch((e) => {
this.log('Failed to start immersive session');
});
}
});
}

super.handleClick(event);
Expand Down

0 comments on commit 162d3fa

Please sign in to comment.