From 7a480d7b7bea109e492048fecdc570899821ba99 Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Fri, 20 Jul 2018 22:17:20 +0000 Subject: [PATCH] Update based on cvan feedback --- 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 61e160bf0..84e931fcd 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 = /Firefox for Android/.test(ua) && isWebVRCapableBrowser; + const isFirefoxReality = ('buildID' in navigator) && isWebVRCapableBrowser; const isInHMD = isOculusBrowser || isFirefoxReality; const isDaydreamCapableBrowser = !!(isWebVRCapableBrowser && browser.name === "chrome" && !isSamsungBrowser); -- GitLab