Skip to content
This repository was archived by the owner on Aug 21, 2024. It is now read-only.

Conversation

@HexaField
Copy link
Contributor

Summary

isHMD previously was only true for navigator user agents that contain 'Quest', this creates a somewhat more robust check that should enable this heuristic for a wider range of HMDs. Specifically, it checks for the presence of navigator.xr, and against mobiles, and the WebXR Emulator.

In the future, we should find a better heuristic that is more deterministic, that ideally doesn't require promises, and without entering a session.

References

closes #insert number here

Checklist

  • If this PR is still a WIP, convert to a draft
  • ensure all checks pass
  • When this PR is ready, mark it as "Ready for review"
  • Changes have been manually QA'd
  • Changes reviewed by at least 2 approved reviewer

QA Steps

List any additional steps required to QA the changes of this PR, as well as any supplemental images or videos.

@HexaField HexaField requested a review from speigg December 30, 2022 10:29
@HexaField HexaField merged commit 17b514c into dev Jan 1, 2023
@HexaField HexaField deleted the ishmd-check-improvements branch January 1, 2023 23:56
HexaField added a commit that referenced this pull request Jan 2, 2023
dinomut1 pushed a commit that referenced this pull request Jan 4, 2023
dinomut1 pushed a commit that referenced this pull request Jan 4, 2023
dinomut1 pushed a commit that referenced this pull request Jan 5, 2023
dinomut1 pushed a commit that referenced this pull request Jan 5, 2023
dinomut1 pushed a commit that referenced this pull request Jan 5, 2023
dinomut1 pushed a commit that referenced this pull request Jan 5, 2023
dinomut1 pushed a commit that referenced this pull request Jan 6, 2023
dinomut1 pushed a commit that referenced this pull request Jan 6, 2023
dinomut1 pushed a commit that referenced this pull request Jan 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant