|
|
|
@ -142,13 +142,11 @@ return asyncJobManager;
|
|
|
|
|
var updateBadge = function(tabId) {
|
|
|
|
|
delete tabIdToTimer[tabId];
|
|
|
|
|
|
|
|
|
|
var pageStore = this.pageStoreFromTabId(tabId);
|
|
|
|
|
if ( pageStore === null ) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var iconId = null;
|
|
|
|
|
var badgeStr = '';
|
|
|
|
|
|
|
|
|
|
var pageStore = this.pageStoreFromTabId(tabId);
|
|
|
|
|
if ( pageStore !== null ) {
|
|
|
|
|
var total = pageStore.perLoadAllowedRequestCount +
|
|
|
|
|
pageStore.perLoadBlockedRequestCount;
|
|
|
|
|
if ( total ) {
|
|
|
|
@ -157,6 +155,7 @@ return asyncJobManager;
|
|
|
|
|
iconId = greenSize < squareSize/2 ? Math.ceil(greenSize) : Math.floor(greenSize);
|
|
|
|
|
badgeStr = this.formatCount(pageStore.distinctRequestCount);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
vAPI.setIcon(tabId, iconId, badgeStr);
|
|
|
|
|
};
|
|
|
|
|