Skip to content

Commit 659cd69

Browse files
committed
fix: render http error once
1 parent ae8d9c8 commit 659cd69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ <h2 class="f4">What does it mean if I get an error?</h2>
361361
}
362362
if (provider.DataAvailableOverHTTP.Enabled === true) {
363363
const httpRes = provider.DataAvailableOverHTTP
364-
outText += `\t\tHTTP Connected: ${httpRes.Connected ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
365-
outText += `\n\t\tHTTP HEAD request: ${httpRes.Requested ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
364+
outText += `\t\tHTTP Connected: ${httpRes.Connected ? '✅' : '❌'}`
365+
outText += `\n\t\tHTTP HEAD request: ${httpRes.Requested ? '✅' : '❌'}`
366366
outText += `\n\t\tHTTP Found: ${httpRes.Found ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
367367
}
368368
outText += (couldConnect && provider.ConnectionMaddrs) ? `\n\t\tSuccessful Connection Multiaddr${provider.ConnectionMaddrs.length > 1 ? 's' : ''}:\n\t\t\t${provider.ConnectionMaddrs?.join('\n\t\t\t') || ''}` : ''

0 commit comments

Comments
 (0)