Remove unused JS variables

This commit is contained in:
b4n6-b4n6
2025-03-03 09:42:27 +07:00
parent 08e2eafb7c
commit da71a00be2
4 changed files with 1 additions and 4 deletions

View File

@@ -21,7 +21,6 @@ function addressTruncatePretty(address, blocks){
if(typeof(address) === "undefined") return "";
if(typeof(blocks) === "undefined") blocks = 2;
blocks = blocks <= 1 ? 1 : blocks >= 23 ? 23 : blocks;
var ret = "";
return address.substring(0, 4 * blocks).match(/.{1,4}/g).join(' ') + " .. " + address.substring(address.length - 4 * blocks).match(/.{1,4}/g).join(' ');
}