diff --git a/src/hub.js b/src/hub.js index a0de8cd657126afd8966321f01ead778f7f82da7..3f636339bb4bf47c2628ec9849367f66500e317a 100644 --- a/src/hub.js +++ b/src/hub.js @@ -390,8 +390,9 @@ document.addEventListener("DOMContentLoaded", async () => { remountUI({ availableVREntryTypes, forcedVREntryType: "vr" }); if (AFRAME.utils.device.getVRDisplay().displayName.indexOf("Cardboard") >= 0) { - // HACK - Oculus Go sometimes reports Cardboard as the primary VR display on startup - // and that is cached by A-Frame, so we need to resolve that before entering as well. + // HACK - The polyfill reports Cardboard as the primary VR display on startup + // out ahead of Oculus Go on Oculus Browser 5.5.0. This display is cached by A-Frame, + // so we need to resolve that and get the real VRDisplay before entering as well. const displays = await navigator.getVRDisplays(); const vrDisplay = displays.length && displays[0]; AFRAME.utils.device.getVRDisplay = () => vrDisplay;