Skip to content

Commit 4244294

Browse files
authored
Merge pull request #555 from mozilla/bugfix/remove-fxr-detect
Fix false positive detection of Firefox on Android as a standalone HMD
2 parents 6a26649 + 2b4dbab commit 4244294

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/vr-caps-detect.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ export async function getAvailableVREntryTypes() {
6363
: VR_DEVICE_AVAILABILITY.no;
6464

6565
const displays = isWebVRCapableBrowser ? await navigator.getVRDisplays() : [];
66-
const isFirefoxReality = window.orientation === 0 && "buildID" in navigator && displays.length > 0;
67-
const isInHMD = isOculusBrowser || isFirefoxReality;
66+
const isInHMD = isOculusBrowser;
6867

6968
const screen = isInHMD
7069
? VR_DEVICE_AVAILABILITY.no

0 commit comments

Comments
 (0)