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:
parent
e66e836dcc
commit
150187faf5
@ -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);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user