Fix for welcome area showing on loading a story when it shouldn't

This commit is contained in:
ebolam
2023-04-26 20:01:17 -04:00
parent 782e9e5fa0
commit 7d986effa1

View File

@@ -316,7 +316,9 @@ function reset_story() {
text += "\xa0 "; text += "\xa0 ";
} }
document.getElementById("welcome_text").innerText = text; 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); document.getElementById('main-grid').setAttribute('option_length', 0);
$(".chat-message").remove(); $(".chat-message").remove();