immersive-web / webxr-samples

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

supportsSession->isSessionSupported #41

Closed toji closed 4 years ago

toji commented 4 years ago

Posted in anticipation of immersive-web/webxr#841 landing. I'll take this out of draft once that happens.

Changes calls to navigator.xr.supportsSession() to navigator.xr.isSessionSupported() and made sure to check the resolved boolean. This matches the spec change made to do the same in response to feedback from the TAG.