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:
parent
4f71cc1814
commit
d9757956a3
4 changed files with 91 additions and 4 deletions
|
@ -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
|
||||
};
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue