From 7d986effa1db16d702f8a63d9d1b19a4ae4f2a5e Mon Sep 17 00:00:00 2001 From: ebolam Date: Wed, 26 Apr 2023 20:01:17 -0400 Subject: [PATCH] Fix for welcome area showing on loading a story when it shouldn't --- static/koboldai.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/koboldai.js b/static/koboldai.js index e268becb..69e77330 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -316,7 +316,9 @@ function reset_story() { text += "\xa0 "; } document.getElementById("welcome_text").innerText = text; - document.getElementById("welcome_container").classList.remove("hidden"); + if (document.getElementById("story_prompt").innerText == "") { + document.getElementById("welcome_container").classList.remove("hidden"); + } document.getElementById('main-grid').setAttribute('option_length', 0); $(".chat-message").remove();