1
0
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:
nobody
2020-09-27 11:46:32 +02:00
parent cf27bde0c8
commit c75e98b9a7
3 changed files with 29 additions and 25 deletions

View File

@@ -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) {