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

Update based on cvan feedback

parent 68479c76
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 = /Firefox for Android/.test(ua) && isWebVRCapableBrowser;
const isFirefoxReality = ('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