jr: show shortened ak_... string in popup window
This commit is contained in:
+15
-1
@@ -97,10 +97,24 @@ pi_repop
|
|||||||
for (let this_akstr of akstrs) {
|
for (let this_akstr of akstrs) {
|
||||||
// make an li
|
// make an li
|
||||||
let this_li = document.createElement('li');
|
let this_li = document.createElement('li');
|
||||||
|
// shorten akstr
|
||||||
|
let this_shakstr = pi_shakstr(this_akstr);
|
||||||
// make inner text the key
|
// make inner text the key
|
||||||
this_li.innerHTML = this_akstr;
|
this_li.innerHTML = this_shakstr;
|
||||||
// add it to the list
|
// add it to the list
|
||||||
pubkeys_ul.appendChild(this_li);
|
pubkeys_ul.appendChild(this_li);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* shorten the ak_... str
|
||||||
|
*/
|
||||||
|
function
|
||||||
|
pi_shakstr
|
||||||
|
(akstr : string)
|
||||||
|
: string
|
||||||
|
{
|
||||||
|
console.log('popup shakstr');
|
||||||
|
return akstr.slice(0, 10) + '...';
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user