couple of glitches

This commit is contained in:
gorhill 2014-06-23 21:49:05 -04:00
parent db7754e286
commit c859100327
2 changed files with 3 additions and 2 deletions

View file

@ -117,6 +117,7 @@ function renderBlacklists() {
return html.join('');
};
var listStatsTemplate = chrome.i18n.getMessage('3pListsOfBlockedHostsPerListStats');
var blacklists = µb.remoteBlacklists;
var ul = $('#blacklists');
var keys = Object.keys(blacklists);
@ -134,7 +135,7 @@ function renderBlacklists() {
child.attr('href', encodeURI(blacklistHref));
child.html(prettifyListName(blacklist.title, blacklistHref));
child = $('span', li);
text = chrome.i18n.getMessage('3pListsOfBlockedHostsPerListStats')
text = listStatsTemplate
.replace('{{used}}', !blacklist.off && !isNaN(+blacklist.entryUsedCount) ? renderNumber(blacklist.entryUsedCount) : '0')
.replace('{{total}}', !isNaN(+blacklist.entryCount) ? renderNumber(blacklist.entryCount) : '?')
;

View file

@ -2,7 +2,7 @@
"manifest_version": 2,
"name": "__MSG_extName__",
"short_name": "µBlock",
"version": "0.1.0.0",
"version": "0.1.0.2",
"description": "__MSG_extShortDesc__",
"icons": {
"16": "img/icon_16.png",