mirror of
https://codeberg.org/nobody/LocalCDN.git
synced 2025-06-05 21:49:31 +02:00
Fixed: Icons disabled for mobile devices and browsers without support for extension icons
This commit is contained in:
@@ -56,10 +56,8 @@ wrappers.setBadgeTextColor = function (details) {
|
||||
wrappers.setIcon = function (details, type) {
|
||||
if (chrome.browserAction.setIcon) {
|
||||
details.path = IconType[details.path][type];
|
||||
} else {
|
||||
details.path = IconType['Default'][type];
|
||||
chrome.browserAction.setIcon(details);
|
||||
}
|
||||
chrome.browserAction.setIcon(details);
|
||||
};
|
||||
|
||||
storageManager.type.get([Setting.BADGE_COLOR, Setting.BADGE_TEXT_COLOR], function (items) {
|
||||
|
Reference in New Issue
Block a user