jr: show shortened ak_... string in popup window

This commit is contained in:
2024-03-18 21:51:36 -06:00
parent a1d0112337
commit f444835d8f
+15 -1
View File
@@ -97,10 +97,24 @@ pi_repop
for (let this_akstr of akstrs) {
// make an li
let this_li = document.createElement('li');
// shorten akstr
let this_shakstr = pi_shakstr(this_akstr);
// make inner text the key
this_li.innerHTML = this_akstr;
this_li.innerHTML = this_shakstr;
// add it to the list
pubkeys_ul.appendChild(this_li);
}
}
}
/**
* shorten the ak_... str
*/
function
pi_shakstr
(akstr : string)
: string
{
console.log('popup shakstr');
return akstr.slice(0, 10) + '...';
}