this fixes #81

This commit is contained in:
gorhill 2014-07-18 10:57:11 -04:00
parent 2369cc88af
commit ab4ed2f776
2 changed files with 11 additions and 2 deletions

View File

@ -47,6 +47,10 @@
"message":"since install",
"description":"English: since install"
},
"popupOr":{
"message":"or",
"description":"English: or"
},
"pickerCreate":{
"message":"Create",
"description":"English: Create"

View File

@ -69,6 +69,7 @@ var renderStats = function() {
isHTTP
);
var or = chrome.i18n.getMessage('popupOr');
var blocked = stats.pageBlockedRequestCount;
var total = stats.pageAllowedRequestCount + blocked;
var html = [];
@ -77,7 +78,9 @@ var renderStats = function() {
} else {
html.push(
formatNumber(blocked),
'<span class="dim">&nbsp;or&nbsp;',
'<span class="dim">&nbsp;',
or,
'&nbsp;',
(blocked * 100 / total).toFixed(0),
'%</span>'
);
@ -92,7 +95,9 @@ var renderStats = function() {
} else {
html.push(
formatNumber(blocked),
'<span class="dim">&nbsp;or&nbsp;',
'<span class="dim">&nbsp;',
or,
'&nbsp;',
(blocked * 100 / total).toFixed(0),
'%</span>'
);