diff --git a/static/koboldai.js b/static/koboldai.js index 92d9b637..3323d2e1 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -3097,6 +3097,7 @@ function gametextwatcher(records) { game_text.append(chunk); } chunk.classList.add("dirty"); + did_deletes = true; } else { //For some reason we've deleted a chunk but it still exists in the DOM. Something is wrong here //Seems to loose the events on the item, but otherwise is OK. DEPLOY HACK!!! @@ -3128,6 +3129,9 @@ function gametextwatcher(records) { } } } + if (did_deletes) { + savegametextchanges(); + } } function savegametextchanges() {