From c134995912c46444d47b5d76aca6853c4650bba8 Mon Sep 17 00:00:00 2001 From: somebody Date: Sat, 17 Dec 2022 12:27:48 -0600 Subject: [PATCH] Fix for saving --- static/koboldai.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index d60d8bbc..9a49f3aa 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -2994,7 +2994,7 @@ function select_game_text(event) { } //if we've moved to a new game chunk we need to save the old chunk if (((new_selected_game_chunk != selected_game_chunk) && (selected_game_chunk != null)) || (document.activeElement != document.getElementById("Selected Text"))) { - if ((selected_game_chunk != null) && (selected_game_chunk.textContent != selected_game_chunk.original_text) && (selected_game_chunk != document.getElementById("welcome_text"))) { + if ((selected_game_chunk != null) && (selected_game_chunk.innerText != selected_game_chunk.original_text) && (selected_game_chunk != document.getElementById("welcome_text"))) { if (selected_game_chunk.id == 'story_prompt') { edit_game_text(-1); } else {