From db8526b50b28b84e8650e62664c3384256eedeab Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 29 Mar 2017 13:11:46 +0300 Subject: [PATCH] In Vivaldi setBadgeText must follow setBadgeBackgroundColor --- messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); } }); }