File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -370,9 +370,9 @@ function formatJustCidOutput (resp) {
370370 const httpRes = provider . DataAvailableOverHTTP
371371 outHtml += `<div class='flex items-center text-sm mb-1'>${ httpRes ?. Connected ? iconCheck : iconCross } <span>HTTP Connected: <span class='font-mono'>${ httpRes ?. Connected ? 'Yes' : 'No' } </span></span></div>`
372372 outHtml += `<div class='flex items-center text-sm mb-1 ml-6'>${ httpRes ?. Requested ? iconCheck : iconCross } <span>HTTP request: <span class='font-mono'>${ httpRes ?. Requested ? 'Yes' : 'No' } </span></span></div>`
373- outHtml += `<div class='flex items-center text-sm mb-1 ml-6'>${ httpRes ?. Found ? iconCheck : iconCross } <span>HTTP Found: <span class='font-mono'>${ httpRes ?. Found ? 'Yes' : 'No' } </span> ${ httpRes ?. Error ?? '' } </span></div>`
373+ outHtml += `<div class='flex items-center text-sm mb-1 ml-6'>${ httpRes ?. Found ? iconCheck : iconCross } <span>HTTP Found: <span class='font-mono'>${ httpRes ?. Found ? 'Yes' : 'No' } </span> ${ httpRes ?. Error ? '(' + httpRes . Error + ')' : '' } </span></div>`
374374 }
375- outHtml += ( couldConnect && provider . ConnectionMaddrs ) ? `<div class='text-xs text-gray-600 mt-2'><span class='font-bold'>Successful Connection Multiaddr${ provider . ConnectionMaddrs . length > 1 ? 's' : '' } :</span><br><span class='font-mono block ml-4 break-all whitespace-break-spaces'>${ provider . ConnectionMaddrs ?. join ( '<br>' ) || '' } </span></div>` : ''
375+ outHtml += ( couldConnect && provider . ConnectionMaddrs ) ? `<div class='text-xs text-gray-600 mt-2'><span class='font-bold'>${ ( hasHTTP && ! provider . DataAvailableOverHTTP ?. Found ) ? 'Attempted' : ' Successful' } Connection Multiaddr${ provider . ConnectionMaddrs . length > 1 ? 's' : '' } :</span><br><span class='font-mono block ml-4 break-all whitespace-break-spaces'>${ provider . ConnectionMaddrs ?. join ( '<br>' ) || '' } </span></div>` : ''
376376 outHtml += ( provider . Addrs ?. length > 0 ) ? `<div class='text-xs text-gray-600 mt-2'><span class='font-bold'>Peer Multiaddrs:</span><br><span class='font-mono block ml-4 break-all whitespace-break-spaces'>${ provider . Addrs . join ( '<br>' ) || '' } </span></div>` : ''
377377 outHtml += `</div>`
378378 }
You can’t perform that action at this time.
0 commit comments