mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-07 03:12:33 +01:00
this fixes #81
This commit is contained in:
parent
2369cc88af
commit
ab4ed2f776
@ -47,6 +47,10 @@
|
|||||||
"message":"since install",
|
"message":"since install",
|
||||||
"description":"English: since install"
|
"description":"English: since install"
|
||||||
},
|
},
|
||||||
|
"popupOr":{
|
||||||
|
"message":"or",
|
||||||
|
"description":"English: or"
|
||||||
|
},
|
||||||
"pickerCreate":{
|
"pickerCreate":{
|
||||||
"message":"Create",
|
"message":"Create",
|
||||||
"description":"English: Create"
|
"description":"English: Create"
|
||||||
|
@ -69,6 +69,7 @@ var renderStats = function() {
|
|||||||
isHTTP
|
isHTTP
|
||||||
);
|
);
|
||||||
|
|
||||||
|
var or = chrome.i18n.getMessage('popupOr');
|
||||||
var blocked = stats.pageBlockedRequestCount;
|
var blocked = stats.pageBlockedRequestCount;
|
||||||
var total = stats.pageAllowedRequestCount + blocked;
|
var total = stats.pageAllowedRequestCount + blocked;
|
||||||
var html = [];
|
var html = [];
|
||||||
@ -77,7 +78,9 @@ var renderStats = function() {
|
|||||||
} else {
|
} else {
|
||||||
html.push(
|
html.push(
|
||||||
formatNumber(blocked),
|
formatNumber(blocked),
|
||||||
'<span class="dim"> or ',
|
'<span class="dim"> ',
|
||||||
|
or,
|
||||||
|
' ',
|
||||||
(blocked * 100 / total).toFixed(0),
|
(blocked * 100 / total).toFixed(0),
|
||||||
'%</span>'
|
'%</span>'
|
||||||
);
|
);
|
||||||
@ -92,7 +95,9 @@ var renderStats = function() {
|
|||||||
} else {
|
} else {
|
||||||
html.push(
|
html.push(
|
||||||
formatNumber(blocked),
|
formatNumber(blocked),
|
||||||
'<span class="dim"> or ',
|
'<span class="dim"> ',
|
||||||
|
or,
|
||||||
|
' ',
|
||||||
(blocked * 100 / total).toFixed(0),
|
(blocked * 100 / total).toFixed(0),
|
||||||
'%</span>'
|
'%</span>'
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user