Merge pull request #764 from thornbill/device-images

Fix device images on main dashboard page
This commit is contained in:
dkanada 2020-02-09 16:57:35 +09:00 committed by GitHub
commit 1ece06e12a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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