Fix device images on main dashboard page

This commit is contained in:
Bill Thornton 2020-02-04 17:24:44 -05:00
parent 8d02d05441
commit efbfbb822e

View File

@ -3,7 +3,7 @@ define(["browser"], function (browser) {
function getDeviceIcon(device) { function getDeviceIcon(device) {
var baseUrl = "assets/img/devices/"; var baseUrl = "assets/img/devices/";
switch (device.AppName) { switch (device.AppName || device.Client) {
case "Samsung Smart TV": case "Samsung Smart TV":
return baseUrl + "samsung.svg"; return baseUrl + "samsung.svg";
case "Xbox One": case "Xbox One":
@ -15,7 +15,7 @@ define(["browser"], function (browser) {
case "Jellyfin Android": case "Jellyfin Android":
return baseUrl + "android.svg"; return baseUrl + "android.svg";
case "Jellyfin Web": case "Jellyfin Web":
switch (device.Name) { switch (device.Name || device.DeviceName) {
case "Opera": case "Opera":
case "Opera TV": case "Opera TV":
return baseUrl + "opera.svg"; return baseUrl + "opera.svg";