1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix iOS platform detection #572

This commit is contained in:
Dmitry Lyzo 2019-11-13 22:00:27 +03:00
parent 88db651eea
commit cdfa115ec0

View file

@ -122,7 +122,7 @@ define([], function () {
}
function iOSversion() {
if (/iP(hone|od|ad)/.test(navigator.platform)) {
if (/iP(hone|od|ad)|MacIntel/.test(navigator.platform)) {
// supports iOS 2.0 and later: <http://bit.ly/TJjs1V>
var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
return [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)];