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:
parent
88db651eea
commit
cdfa115ec0
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ define([], function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
function iOSversion() {
|
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>
|
// supports iOS 2.0 and later: <http://bit.ly/TJjs1V>
|
||||||
var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
|
var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
|
||||||
return [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)];
|
return [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue