mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
limit resume to 8
This commit is contained in:
parent
dd2b5bc15e
commit
fb269362ff
7 changed files with 62 additions and 25 deletions
|
@ -15,12 +15,12 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.1.25",
|
||||
"_release": "1.1.25",
|
||||
"version": "1.1.26",
|
||||
"_release": "1.1.26",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.1.25",
|
||||
"commit": "0b6a10525c2143ac953dd9f8229e5eab2c2055bf"
|
||||
"tag": "1.1.26",
|
||||
"commit": "3cee1dd4f0c0b8727fbd8e03c77b989100082faa"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "~1.1.5",
|
||||
|
|
|
@ -1,5 +1,29 @@
|
|||
define(['isMobile'], function (isMobile) {
|
||||
|
||||
function isTv() {
|
||||
|
||||
// This is going to be really difficult to get right
|
||||
var userAgent = navigator.userAgent.toLowerCase();
|
||||
|
||||
if (userAgent.indexOf('tv') != -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (userAgent.indexOf('samsung') != -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (userAgent.indexOf('nintendo') != -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (userAgent.indexOf('viera') != -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
var uaMatch = function (ua) {
|
||||
ua = ua.toLowerCase();
|
||||
|
||||
|
@ -68,5 +92,7 @@
|
|||
browser.xboxOne = userAgent.toLowerCase().indexOf('xbox') != -1;
|
||||
browser.animate = document.documentElement.animate != null;
|
||||
|
||||
browser.tv = isTv();
|
||||
|
||||
return browser;
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue