Skip to content

Commit

Permalink
KJSL: Removing cardboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Staunton-Lambert committed Jul 30, 2024
1 parent 64bce10 commit fb8b703
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/big-vr-play-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ class BigVrPlayButton extends BigPlayButton {
handleClick(event) {
// For iOS we need permission for the device orientation data, this will pop up an 'Allow' if not already set
// eslint-disable-next-line
// if (typeof window.DeviceMotionEvent === 'function' &&
// typeof window.DeviceMotionEvent.requestPermission === 'function') {
// window.DeviceMotionEvent.requestPermission().then(response => {
// if (response !== 'granted') {
// this.log('DeviceMotionEvent permissions not set');
// }
// });
// }
if (typeof window.DeviceMotionEvent === 'function' &&
typeof window.DeviceMotionEvent.requestPermission === 'function') {
window.DeviceMotionEvent.requestPermission().then(response => {
if (response !== 'granted') {
this.log('DeviceMotionEvent permissions not set');
}
});
}

if (window.navigator.xr) {
const sessionInit = {optionalFeatures: ['local-floor', 'bounded-floor', 'hand-tracking']};
Expand Down

0 comments on commit fb8b703

Please sign in to comment.