Fix some of the logic for generation aborting

This commit is contained in:
Gnome Ann
2022-01-10 17:09:47 -05:00
parent 902b6b0cee
commit 43586c8f60
3 changed files with 8 additions and 6 deletions

View File

@ -799,7 +799,7 @@ function formatChunkInnerText(chunk) {
function dosubmit(disallow_abort) {
var txt = input_text.val().replace(/\u00a0/g, " ");
if(gamestate !== "wait" && !memorymode && !gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) {
if((disallow_abort || gamestate !== "wait") && !memorymode && !gamestarted && ((!adventure || !action_mode) && txt.trim().length == 0)) {
return;
}
input_text.val("");