Skip to content

Commit

Permalink
fixed sse abort
Browse files Browse the repository at this point in the history
  • Loading branch information
Concedo authored and Concedo committed Nov 11, 2023
1 parent ef55de5 commit 16836cc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
},
}));
})
Expand Down

0 comments on commit 16836cc

Please sign in to comment.