mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 10:58:20 -07:00
fix device icons for Safari and Android
This commit is contained in:
parent
4fc39ff94c
commit
726a949514
@ -104,7 +104,7 @@ define(["appSettings", "browser", "events", "htmlMediaHelper"], function (appSet
|
||||
|
||||
function getDeviceName() {
|
||||
var deviceName;
|
||||
deviceName = browser.tizen ? "Samsung Smart TV" : browser.web0s ? "LG Smart TV" : browser.operaTv ? "Opera TV" : browser.xboxOne ? "Xbox One" : browser.ps4 ? "Sony PS4" : browser.chrome ? "Chrome" : browser.edge ? "Edge" : browser.firefox ? "Firefox" : browser.msie ? "Internet Explorer" : browser.opera ? "Opera" : "Web Browser";
|
||||
deviceName = browser.tizen ? "Samsung Smart TV" : browser.web0s ? "LG Smart TV" : browser.operaTv ? "Opera TV" : browser.xboxOne ? "Xbox One" : browser.ps4 ? "Sony PS4" : browser.chrome ? "Chrome" : browser.edge ? "Edge" : browser.firefox ? "Firefox" : browser.msie ? "Internet Explorer" : browser.opera ? "Opera" : browser.safari ? "Safari" : "Web Browser";
|
||||
|
||||
if (browser.ipad) {
|
||||
deviceName += " iPad";
|
||||
|
@ -18,11 +18,18 @@ define(["browser"], function (browser) {
|
||||
switch (device.Name || device.DeviceName) {
|
||||
case "Opera":
|
||||
case "Opera TV":
|
||||
case "Opera Android":
|
||||
return baseUrl + "opera.svg";
|
||||
case "Chrome":
|
||||
case "Chrome Android":
|
||||
return baseUrl + "chrome.svg";
|
||||
case "Firefox":
|
||||
case "Firefox Android":
|
||||
return baseUrl + "firefox.svg";
|
||||
case "Safari":
|
||||
case "Safari iPad":
|
||||
case "Safari iPhone":
|
||||
return baseUrl + "safari.svg";
|
||||
case "Edge":
|
||||
return baseUrl + "edge.svg";
|
||||
case "Internet Explorer":
|
||||
|
Loading…
Reference in New Issue
Block a user