mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-02-02 12:27:27 +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) {
|
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);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user