1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-08 04:49:12 +02:00

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",