From 206e34a32feda86031882d6ea60c1acf509ad23c Mon Sep 17 00:00:00 2001
From: Greg Fodor <gfodor@gmail.com>
Date: Fri, 20 Jul 2018 20:42:56 +0000
Subject: [PATCH] Add firefox reality test

---
 src/utils/vr-caps-detect.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/utils/vr-caps-detect.js b/src/utils/vr-caps-detect.js
index 685fb3ba3..58023becc 100644
--- a/src/utils/vr-caps-detect.js
+++ b/src/utils/vr-caps-detect.js
@@ -46,7 +46,8 @@ export async function getAvailableVREntryTypes() {
   const ua = navigator.userAgent;
   const isSamsungBrowser = browser.name === "chrome" && /SamsungBrowser/.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.
   // Checking for navigator.getVRDisplays always passes b/c of polyfill.
-- 
GitLab