From 16836cc8c08ca59bc4ceacacf8eb5e236926edbf Mon Sep 17 00:00:00 2001 From: Concedo Date: Sat, 11 Nov 2023 10:04:49 +0800 Subject: [PATCH] fixed sse abort --- index.html | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 00090b5..9aef044 100644 --- a/index.html +++ b/index.html @@ -3015,12 +3015,17 @@ msgbox("Error while submitting prompt: Server appears to be busy."); } }, - abort(e) { - retry_preserve_last = true; + abort(error) { + console.error('Error:', error); clear_poll_flags(); render_gametext(); - msgbox("Error while submitting prompt: " + error); + + if(error.name!="AbortError") //aborts are silent. slightly diff logic + { + msgbox("Error while submitting prompt: " + error); + retry_preserve_last = true; + } }, })); })