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

Add firefox reality test

parent 5001ccc0
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,8 @@ export async function getAvailableVREntryTypes() { ...@@ -46,7 +46,8 @@ export async function getAvailableVREntryTypes() {
const ua = navigator.userAgent; const ua = navigator.userAgent;
const isSamsungBrowser = browser.name === "chrome" && /SamsungBrowser/.test(ua); const isSamsungBrowser = browser.name === "chrome" && /SamsungBrowser/.test(ua);
const isOculusBrowser = /Oculus/.test(ua); const isOculusBrowser = /Oculus/.test(ua);
const isInHMD = isOculusBrowser; const isFirefoxReality = /Firefox Reality/.test(ua);
const isInHMD = isOculusBrowser || isFirefoxReality;
// This needs to be kept up-to-date with the latest browsers that can support VR and Hubs. // 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. // Checking for navigator.getVRDisplays always passes b/c of polyfill.
......
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