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:
parent
3875ea65c4
commit
7df9991141
5 changed files with 21 additions and 1 deletions
BIN
dashboard-ui/css/images/clients/chrome.png
Normal file
BIN
dashboard-ui/css/images/clients/chrome.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
BIN
dashboard-ui/css/images/clients/firefox.png
Normal file
BIN
dashboard-ui/css/images/clients/firefox.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 183 KiB |
BIN
dashboard-ui/css/images/clients/ie.png
Normal file
BIN
dashboard-ui/css/images/clients/ie.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 234 KiB |
BIN
dashboard-ui/css/images/clients/safari.png
Normal file
BIN
dashboard-ui/css/images/clients/safari.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 48 KiB |
|
@ -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") {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue