From e2405b938887b982e900945f2b45d9c5ab820da9 Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Fri, 20 Jul 2018 22:43:30 +0000 Subject: [PATCH] PR feedback to harden FxR check --- src/utils/vr-caps-detect.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/vr-caps-detect.js b/src/utils/vr-caps-detect.js index 90c4ac6b5..baed879b0 100644 --- a/src/utils/vr-caps-detect.js +++ b/src/utils/vr-caps-detect.js @@ -50,7 +50,7 @@ export async function getAvailableVREntryTypes() { // This needs to be kept up-to-date with the latest browsers that can support VR and Hubs. // Checking for navigator.getVRDisplays always passes b/c of polyfill. const isWebVRCapableBrowser = window.hasNativeWebVRImplementation; - const isFirefoxReality = "buildID" in navigator && isWebVRCapableBrowser; + const isFirefoxReality = window.orientation === 0 && "buildID" in navigator && isWebVRCapableBrowser; const isInHMD = isOculusBrowser || isFirefoxReality; const isDaydreamCapableBrowser = !!(isWebVRCapableBrowser && browser.name === "chrome" && !isSamsungBrowser); -- GitLab