X-Git-Url: https://git.cworth.org/git?p=lmno.games;a=blobdiff_plain;f=scribe%2Fscribe.jsx;h=06a8541297059bdc046f6f40ae3ac129d8ff2e74;hp=81296dc900194121a76d1ce2a842803451ea33e4;hb=6c0ef34689d35ec9deada19903f7e307f5ac618a;hpb=91ddcd6ad4ab4294f345421d1a490462b01b6496 diff --git a/scribe/scribe.jsx b/scribe/scribe.jsx index 81296dc..06a8541 100644 --- a/scribe/scribe.jsx +++ b/scribe/scribe.jsx @@ -26,7 +26,9 @@ const events = new EventSource("events"); events.onerror = function(event) { if (event.target.readyState === EventSource.CLOSED) { + setTimeout(() => { add_message("danger", "Connection to server lost."); + }, 1000); } };