claude fixed ts for me so kids can stop dming me

This commit is contained in:
KingKDot
2026-03-22 13:19:38 -05:00
parent 92530044c9
commit dde960470f
5 changed files with 98 additions and 3 deletions
+9 -1
View File
@@ -10,7 +10,8 @@ function setStatus(msg, type = "info") {
statusEl.innerHTML = msg;
}
// Load saved connection on startup
// Load saved connection on startup and surface any pending error from a
// previous session (e.g. the server dropped mid-session and we bounced back).
(async () => {
try {
const saved = await window.overlord.getSavedConnection();
@@ -22,6 +23,13 @@ function setStatus(msg, type = "info") {
} catch {
// first run, no saved data
}
try {
const err = await window.overlord.getPendingError();
if (err) setStatus(err, "error");
} catch {
// ignore
}
})();
form.addEventListener("submit", async (e) => {