diff --git a/modules/internal/wrappers.js b/modules/internal/wrappers.js index 3d426c00..713884b9 100644 --- a/modules/internal/wrappers.js +++ b/modules/internal/wrappers.js @@ -67,14 +67,21 @@ wrappers.setBadgeMissing = function (tabIdentifier, counter) { 'tabId': tabIdentifier, 'text': `${counter}`, }); - chrome.browserAction.setBadgeTextColor({ - 'tabId': tabIdentifier, - 'color': 'black', - }); - chrome.browserAction.setBadgeBackgroundColor({ - 'tabId': tabIdentifier, - 'color': 'yellow', - }); + if (BrowserType.FIREFOX) { + chrome.browserAction.setBadgeTextColor({ + 'tabId': tabIdentifier, + 'color': 'black', + }); + chrome.browserAction.setBadgeBackgroundColor({ + 'tabId': tabIdentifier, + 'color': 'yellow', + }); + } else { + chrome.browserAction.setBadgeBackgroundColor({ + 'tabId': tabIdentifier, + 'color': 'red', + }); + } }; wrappers.defaultBadge = function (tabIdentifier, counter) { @@ -82,10 +89,12 @@ wrappers.defaultBadge = function (tabIdentifier, counter) { 'tabId': tabIdentifier, 'text': `${counter}`, }); - chrome.browserAction.setBadgeTextColor({ - 'tabId': tabIdentifier, - 'color': wrappers.textColor - }); + if (BrowserType.FIREFOX) { + chrome.browserAction.setBadgeTextColor({ + 'tabId': tabIdentifier, + 'color': wrappers.textColor + }); + } chrome.browserAction.setBadgeBackgroundColor({ 'tabId': tabIdentifier, 'color': wrappers.backgroundColor diff --git a/pages/updates/updates.html b/pages/updates/updates.html index 9b0eb6e5..f127184d 100644 --- a/pages/updates/updates.html +++ b/pages/updates/updates.html @@ -35,6 +35,7 @@