immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
995 stars 479 forks source link

Display an error for unsupported devices #79

Open josephrocca opened 3 years ago

josephrocca commented 3 years ago

Would you accept a pull request which alerts the user in js/util/webxr-button.js if their device is unsupported? Currently the button just shakes, and to see the error you need to plug your phone in and visit chrome://inspect (or equivalent) to see the error message. Would be handy to tell the user what's going on in a modal or alert.

https://github.com/immersive-web/webxr-samples/blob/master/js/util/webxr-button.js#L483