Verified Commit 182ee17c authored by Thomas Rientjes's avatar Thomas Rientjes
Browse files

Improve menu entry title injection count formatting

parent 35e63a2a
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment