fix: preserve Gitea events on refresh failure (#41)
This commit is contained in:
1 parent
582ab559c7
commit
4afa4032d7
2 files changed
+8
-1
No files matched your search
+1
-1
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user