diff --git a/messaging.js b/messaging.js index cf8ad623..2924f863 100644 --- a/messaging.js +++ b/messaging.js @@ -105,10 +105,10 @@ function updateIcon(tab, styles) { // e.g. 'windowPosition' pref updated in edit.js::window.onbeforeunload if (!chrome.runtime.lastError) { const text = prefs.get('show-badge') && numStyles ? String(numStyles) : ''; - chrome.browserAction.setBadgeText({text, tabId: tab.id}); chrome.browserAction.setBadgeBackgroundColor({ color: prefs.get(disableAll ? 'badgeDisabled' : 'badgeNormal') }); + chrome.browserAction.setBadgeText({text, tabId: tab.id}); } }); }