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

separate browser icons

This commit is contained in:
Luke Pulverenti 2013-06-02 08:13:41 -04:00
parent 3875ea65c4
commit 7df9991141
5 changed files with 21 additions and 1 deletions

View file

@ -118,7 +118,27 @@
if (clientLowered == "dashboard") {
return "<img src='css/images/clients/html5.png' alt='Dashboard' title='Dashboard' />";
var device = connection.DeviceName.toLowerCase();
var imgUrl;
if (device.indexOf('chrome') != -1) {
imgUrl = 'css/images/clients/chrome.png';
}
else if (device.indexOf('firefox') != -1) {
imgUrl = 'css/images/clients/firefox.png';
}
else if (device == 'internet explorer') {
imgUrl = 'css/images/clients/ie.png';
}
else if (device.indexOf('safari') != -1) {
imgUrl = 'css/images/clients/safari.png';
}
else {
imgUrl = 'css/images/clients/html5.png';
}
return "<img src='" + imgUrl + "' alt='Dashboard' title='Dashboard' />";
}
if (clientLowered == "mb-classic") {