forked from snxraven/p2ns
Fix
This commit is contained in:
@@ -185,10 +185,11 @@ function coreCellMark(ok, partial) {
|
||||
}
|
||||
|
||||
function formatCoreRemoteState(remote) {
|
||||
const esc = window.escapeHtml || ((s) => String(s));
|
||||
if (!remote) return '<span class="text-gray-500">—</span>';
|
||||
if (!remote.ok) {
|
||||
const err = remote.error === 'rpc_not_ready' ? 'RPC not ready' : (remote.error || 'no response');
|
||||
return `<span class="text-gray-500">${err}</span>`;
|
||||
return `<span class="text-gray-500">${esc(err)}</span>`;
|
||||
}
|
||||
const parts = [remote.nodeType || '?'];
|
||||
parts.push(remote.dnsPassInitialized ? 'dnsPass' : 'no dnsPass');
|
||||
|
||||
Reference in New Issue
Block a user