mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
browser.js: Avoid misdetecting Chrome OS as OS X
Matching for lower-case "os x" not only finds "Mac OS X" but also "CrOS x86_64". Mismatching Chrome OS as Apple device leads to playback issues due to differences in supported client formats.
This commit is contained in:
parent
97ee2a4bbf
commit
ce9538498e
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ if (!browser.chrome && !browser.edgeChromium && !browser.edge && !browser.opera
|
||||||
browser.safari = true;
|
browser.safari = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
browser.osx = userAgent.toLowerCase().indexOf('os x') !== -1;
|
browser.osx = userAgent.toLowerCase().indexOf('mac os x') !== -1;
|
||||||
|
|
||||||
// This is a workaround to detect iPads on iOS 13+ that report as desktop Safari
|
// This is a workaround to detect iPads on iOS 13+ that report as desktop Safari
|
||||||
// This may break in the future if Apple releases a touchscreen Mac
|
// This may break in the future if Apple releases a touchscreen Mac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue