Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Improve menu entry title injection count formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Synzvato committed Jun 28, 2018
1 parent 35e63a2 commit 182ee17
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions core/state-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 182ee17

Please sign in to comment.