blob: 64a152bf1ce784099562d9dfc11683b0b0d227e4 (
plain)
1
2
3
4
5
6
7
8
9
|
<script>
'use strict';
Promise.resolve().then(() => navigator.getVRDisplays()).then(displays => {
window.parent.postMessage({ enabled: true }, '*');
}, error => {
window.parent.postMessage({ enabled: false }, '*');
});
</script>
|