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

update version for merge

This commit is contained in:
Luke Pulverenti 2015-06-19 13:22:54 -04:00
parent 8f6cbe8de2
commit d80ee0d337
2 changed files with 16 additions and 1 deletions

View file

@ -965,6 +965,18 @@
browser.tv = true; browser.tv = true;
} }
if (browser.ipad || browser.iphone) {
if (userAgent.toLowerCase().indexOf('CPU OS 9') != -1) {
browser.iOSVersion = 9;
}
else if (userAgent.toLowerCase().indexOf('CPU OS 8') != -1) {
browser.iOSVersion = 8;
}
else if (userAgent.toLowerCase().indexOf('CPU OS 7') != -1) {
browser.iOSVersion = 7;
}
}
jQuery.browser = browser; jQuery.browser = browser;
})(jQuery, window); })(jQuery, window);

View file

@ -53,7 +53,10 @@
function normalizeReturnUrl(url) { function normalizeReturnUrl(url) {
if ($.browser.safari) { if ($.browser.safari) {
return url.replace('file://', '');
if ($.browser.iOSVersion == 8) {
return url.replace('file://', '');
}
} }
return url; return url;
} }