Merge pull request #705 from Stremio/fix/platform-macos-detection

fix(Platform): macos detection
This commit is contained in:
Tim 2024-10-08 14:38:17 +02:00 committed by GitHub
commit 2acb9a8f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,7 +17,7 @@ const isIOS = APPLE_MOBILE_DEVICES.includes(platform) || (userAgent.includes('Ma
// Edge case: iPad is included in this function
// Keep in mind maxTouchPoints for Vision Pro might change in the future
const isVisionOS = userAgent.includes('Macintosh') || maxTouchPoints === 5;
const isVisionOS = userAgent.includes('Macintosh') && maxTouchPoints === 5;
const bowser = Bowser.getParser(userAgent);
const os = bowser.getOSName().toLowerCase();