mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix xbox one browser access
This commit is contained in:
parent
0a24cd2dc6
commit
173773d5bc
22 changed files with 1229 additions and 172 deletions
9
dashboard-ui/thirdparty/browser.js
vendored
9
dashboard-ui/thirdparty/browser.js
vendored
|
@ -931,7 +931,8 @@
|
|||
};
|
||||
};
|
||||
|
||||
matched = jQuery.uaMatch(window.navigator.userAgent);
|
||||
var userAgent = window.navigator.userAgent;
|
||||
matched = jQuery.uaMatch(userAgent);
|
||||
browser = {};
|
||||
|
||||
if (matched.browser) {
|
||||
|
@ -950,9 +951,13 @@
|
|||
browser.safari = true;
|
||||
}
|
||||
|
||||
var md = new MobileDetect(window.navigator.userAgent);
|
||||
var md = new MobileDetect(userAgent);
|
||||
|
||||
browser.mobile = md.mobile();
|
||||
|
||||
if (browser.msie && !browser.mobile && userAgent.toLowerCase().indexOf("xbox") != -1) {
|
||||
browser.tv = true;
|
||||
}
|
||||
|
||||
jQuery.browser = browser;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue