diff --git a/site/admin.html b/site/admin.html index d5b954e..f9e1376 100644 --- a/site/admin.html +++ b/site/admin.html @@ -834,7 +834,7 @@ async function mapFind(){ // ---------- helpers ---------- function vSoon(title, body){ return () => { $('#content').innerHTML = `

${title}

${body}

Coming next.
`; }; } -function escapeH(s){ return (s||'').replace(/[&<>"]/g, c => ({'&':'&','<':'<','>':'>','"':'"'}[c])); } +function escapeH(s){ return (s==null?'':String(s)).replace(/[&<>"]/g, c => ({'&':'&','<':'<','>':'>','"':'"'}[c])); } if(TOKEN){ $('#tok').value = TOKEN; signin(); }