1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-01-22 23:40:39 +01:00

Default icon selection improved (#52)

This commit is contained in:
nobody 2020-07-12 09:57:14 +02:00
parent e66e836dcc
commit 150187faf5
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A

View File

@ -46,8 +46,10 @@ wrappers.setBadgeTextColor = function (details) {
wrappers.setIcon = function (details, type) {
if (chrome.browserAction.setIcon !== undefined) {
if (chrome.browserAction.setIcon) {
details.path = IconType[details.path][type];
chrome.browserAction.setIcon(details);
} else {
details.path = IconType['Default'][type];
}
chrome.browserAction.setIcon(details);
};