diff --git a/core/state-manager.js b/core/state-manager.js index 86fe375..4bcb05c 100644 --- a/core/state-manager.js +++ b/core/state-manager.js @@ -135,17 +135,24 @@ stateManager._updateTab = function (details) { return; } + chrome.browserAction.setTitle({ + 'tabId': tabIdentifier, + 'title': 'Decentraleyes (0)' + }); + if (domainIsWhitelisted) { + stateManager._setIconDisabled(tabIdentifier); + + chrome.browserAction.setTitle({ + 'tabId': tabIdentifier, + 'title': 'Decentraleyes (–)' + }); + } else { stateManager._setIconDefault(tabIdentifier); } - chrome.browserAction.setTitle({ - 'tabId': tabIdentifier, - 'title': 'Decentraleyes' - }); - if (stateManager.showIconBadge === true) { stateManager._clearBadgeText(tabIdentifier); }