mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 11:42:05 +00:00
add: docs
This commit is contained in:
parent
103fce7894
commit
54728d63ce
1 changed files with 2 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ const Bowser = require('bowser');
|
||||||
|
|
||||||
const browser = Bowser.parse(window.navigator?.userAgent || '');
|
const browser = Bowser.parse(window.navigator?.userAgent || '');
|
||||||
|
|
||||||
|
// Edge case: iPad is included in this function
|
||||||
|
// Keep in mind maxTouchPoints for Vision Pro might change in the future
|
||||||
const isVisionProUser = () => {
|
const isVisionProUser = () => {
|
||||||
const isMacintosh = navigator.userAgent.includes('Macintosh');
|
const isMacintosh = navigator.userAgent.includes('Macintosh');
|
||||||
const hasFiveTouchPoints = navigator.maxTouchPoints === 5;
|
const hasFiveTouchPoints = navigator.maxTouchPoints === 5;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue