Skip to content
Snippets Groups Projects
Commit e2405b93 authored by Greg Fodor's avatar Greg Fodor
Browse files

PR feedback to harden FxR check

parent 3c4af90e
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment