Skip to content

Commit

Permalink
Don't use DOM Overlay in VR
Browse files Browse the repository at this point in the history
  • Loading branch information
toji committed Jul 9, 2020
1 parent 20d3396 commit 3563c58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions report/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,14 @@ <h4>Input Sources</h4>
report.state = 'Starting';

const sessionOptions = {
optionalFeatures: ['local-floor', 'bounded-floor', 'unbounded', 'dom-overlay'],
domOverlay: { root: document.getElementById('session-report') }
optionalFeatures: ['local-floor', 'bounded-floor', 'unbounded']
};

if (name == 'immersive-ar') {
optionalFeatures.push('dom-overlay');
sessionOptions.domOverlay = { root: document.getElementById('session-report') };
}

navigator.xr.requestSession(name, sessionOptions).then((session) => {
report.session = session;
report.running = true;
Expand Down

0 comments on commit 3563c58

Please sign in to comment.