Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
Hubs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ar-noc
Hubs
Commits
1ded034e
Commit
1ded034e
authored
6 years ago
by
Kevin Lee
Browse files
Options
Downloads
Patches
Plain Diff
ci seems to think this is not passing linter, so making it a bit more readable
parent
94b38313
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils/vr-caps-detect.js
+4
-5
4 additions, 5 deletions
src/utils/vr-caps-detect.js
with
4 additions
and
5 deletions
src/utils/vr-caps-detect.js
+
4
−
5
View file @
1ded034e
...
@@ -67,11 +67,10 @@ export async function getAvailableVREntryTypes() {
...
@@ -67,11 +67,10 @@ export async function getAvailableVREntryTypes() {
// Browser for now since Samsung Internet requires an additional WebVR installation + flag, so return "maybe".
// Browser for now since Samsung Internet requires an additional WebVR installation + flag, so return "maybe".
//
//
// If we are in Oculus Browser (ie, we are literally wearing a GearVR) then return 'yes'.
// If we are in Oculus Browser (ie, we are literally wearing a GearVR) then return 'yes'.
const
gearvr
=
isMaybeGearVRCompatibleDevice
()
let
gearvr
=
VR_DEVICE_AVAILABILITY
.
no
;
?
isOculusBrowser
if
(
isMaybeGearVRCompatibleDevice
())
{
?
VR_DEVICE_AVAILABILITY
.
yes
gearvr
=
isOculusBrowser
?
VR_DEVICE_AVAILABILITY
.
yes
:
VR_DEVICE_AVAILABILITY
.
maybe
;
:
VR_DEVICE_AVAILABILITY
.
maybe
}
:
VR_DEVICE_AVAILABILITY
.
no
;
// For daydream detection, we first check if they are on an Android compatible device, and assume they
// For daydream detection, we first check if they are on an Android compatible device, and assume they
// may support daydream *unless* this browser has WebVR capabilities, in which case we can do better.
// may support daydream *unless* this browser has WebVR capabilities, in which case we can do better.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment