forked from Public/monero-gui
QML: fix warnings
This commit is contained in:
@@ -12,13 +12,13 @@ function destinationsToAddress(destinations){
|
||||
}
|
||||
|
||||
function addressTruncate(address, range){
|
||||
if(typeof(address) === "undefined") return;
|
||||
if(typeof(address) === "undefined") return "";
|
||||
if(typeof(range) === "undefined") range = 8;
|
||||
return address.substring(0, range) + "..." + address.substring(address.length-range);
|
||||
}
|
||||
|
||||
function addressTruncatePretty(address, blocks){
|
||||
if(typeof(address) === "undefined") return;
|
||||
if(typeof(address) === "undefined") return "";
|
||||
if(typeof(blocks) === "undefined") blocks = 2;
|
||||
blocks = blocks <= 1 ? 1 : blocks >= 23 ? 23 : blocks;
|
||||
var ret = "";
|
||||
|
||||
Reference in New Issue
Block a user