mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-24 03:12:46 +01:00
this fixes #471
This commit is contained in:
parent
41fb56c53e
commit
8ff2dc362c
@ -211,8 +211,9 @@ var updateDynamicFilterCell = function(scope, des, type, rule) {
|
||||
if ( aCount === 0 && bCount === 0 ) {
|
||||
return;
|
||||
}
|
||||
aCount = Math.min(Math.ceil(Math.log10(aCount + 1)), 3);
|
||||
bCount = Math.min(Math.ceil(Math.log10(bCount + 1)), 3);
|
||||
// https://github.com/gorhill/uBlock/issues/471
|
||||
aCount = Math.min(Math.ceil(Math.log(aCount + 1) / Math.LN10), 3);
|
||||
bCount = Math.min(Math.ceil(Math.log(bCount + 1) / Math.LN10), 3);
|
||||
// IMPORTANT: It is completely assumed the first node is a TEXT_NODE, so
|
||||
// ensure this in the HTML file counterpart when you make
|
||||
// changes
|
||||
|
Loading…
Reference in New Issue
Block a user