mirror of https://github.com/gorhill/uBlock.git
this fixes #81
This commit is contained in:
parent
2369cc88af
commit
ab4ed2f776
|
@ -47,6 +47,10 @@
|
|||
"message":"since install",
|
||||
"description":"English: since install"
|
||||
},
|
||||
"popupOr":{
|
||||
"message":"or",
|
||||
"description":"English: or"
|
||||
},
|
||||
"pickerCreate":{
|
||||
"message":"Create",
|
||||
"description":"English: Create"
|
||||
|
|
|
@ -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"> or ',
|
||||
'<span class="dim"> ',
|
||||
or,
|
||||
' ',
|
||||
(blocked * 100 / total).toFixed(0),
|
||||
'%</span>'
|
||||
);
|
||||
|
@ -92,7 +95,9 @@ var renderStats = function() {
|
|||
} else {
|
||||
html.push(
|
||||
formatNumber(blocked),
|
||||
'<span class="dim"> or ',
|
||||
'<span class="dim"> ',
|
||||
or,
|
||||
' ',
|
||||
(blocked * 100 / total).toFixed(0),
|
||||
'%</span>'
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue