We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38b6c33 commit aa792c9Copy full SHA for aa792c9
src/utils/device.js
@@ -3,6 +3,7 @@ var vrDisplay;
3
// Support both WebVR and WebXR APIs.
4
if (navigator.xr) {
5
navigator.xr.requestDevice().then(function (device) {
6
+ if (!device) { return; }
7
device.supportsSession({immersive: true, exclusive: true}).then(function () {
8
var sceneEl = document.querySelector('a-scene');
9
vrDisplay = device;
0 commit comments