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

Rework device icons + add Kodi

This commit is contained in:
mcarlton00 2019-12-20 17:44:38 -05:00
parent 4f71cc1814
commit d9757956a3
4 changed files with 91 additions and 4 deletions

View file

@ -3,7 +3,7 @@ define(["browser"], function (browser) {
function getDeviceIcon(device) {
var baseUrl = "img/devices/";
switch (device) {
switch (device.Name) {
case "Opera":
case "Opera TV":
return baseUrl + "opera.svg";
@ -24,6 +24,10 @@ define(["browser"], function (browser) {
case "Web Browser":
return baseUrl + "html5.svg";
default:
switch(device.AppName) {
case "Kodi":
return baseUrl + "kodi.svg";
}
return baseUrl + "other.svg";
}
}
@ -61,4 +65,4 @@ define(["browser"], function (browser) {
getDeviceIcon: getDeviceIcon,
getLibraryIcon: getLibraryIcon
};
});
});