Jump to content

JavaScript: Difference between revisions

290 bytes added ,  14 February 2020
no edit summary
No edit summary
Line 186: Line 186:


===WeakSet===
===WeakSet===
==WebXR==
<syntaxhighlight lang="javascript">
// Check for VR support
if ("xr" in navigator && "isSessionSupported" in navigator.xr) {
  navigator.xr.isSessionSupported('immersive-vr').then((supported) => {
    console.log("immersive-vr supported:", supported);
  });
}
</syntaxhighlight>


==Modules==
==Modules==