diff options
| author | tv <tv@krebsco.de> | 2026-10-30 20:23:39 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-30 20:23:39 +0100 |
| commit | caf212f916ce8fb31d7dba8bbe6d537092d324d5 (patch) | |
| tree | 023f520e9e609fbd26a04334b9e3a575c7d64514 /src | |
| parent | 08f0866e4ea9887a70f8576486e1e62ded428ef1 (diff) | |
dashboard: let reconnecting pulse, too
Diffstat (limited to 'src')
| -rw-r--r-- | src/api/dashboard/dashboard.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/dashboard/dashboard.html b/src/api/dashboard/dashboard.html index 0c03ebf..870b0df 100644 --- a/src/api/dashboard/dashboard.html +++ b/src/api/dashboard/dashboard.html @@ -878,6 +878,8 @@ function connect() { setTimeout(connect, 3000); }); events.addEventListener("error", () => { + // Each attempt that failed: a breath too, so it shows it keeps trying. + pulse(); live = false; if (events.readyState === EventSource.CLOSED) { // Given up (an HTTP error, e.g. the node is up but not serving the page yet). |
