1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

Default icon selection improved (#52)

This commit is contained in:
nobody
2020-07-12 09:57:14 +02:00
parent e66e836dcc
commit 150187faf5

View File

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