fix: preserve Gitea events on refresh failure (#41)
CI / lint (pull_request) Successful in 8s
CI / build-frontend (pull_request) Successful in 5s

This commit is contained in:
timmy committed 2026-08-05 15:34:05 +00:00
1 parent 582ab559c7
commit 4afa4032d7
2 files changed
+8 -1

No files matched your search

+1 -1
View File
@@ -258,7 +258,7 @@ textarea { resize: vertical; min-height: 120px; }
paintEventStream(await res.json());
setEventStreamStatus('Updated ' + fmt(new Date()));
} catch (e) {
qs('#gitea-events').innerHTML = '<div class="muted">Event stream unavailable.</div>';
setEventStreamStatus('Update failed · showing last activity');
}
}