Skip to content
Snippets Groups Projects
Commit 1ded034e authored by Kevin Lee's avatar Kevin Lee
Browse files

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
...@@ -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.
......
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