From 0469836fb3dee01c90df300021583ba451f72594 Mon Sep 17 00:00:00 2001 From: somebody Date: Fri, 18 Nov 2022 18:28:13 -0600 Subject: [PATCH] Small cleanup Hide some debug messages and remove Bubbles option. Bubbles will likely come in a later PR. --- gensettings.py | 1 - static/koboldai.js | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/gensettings.py b/gensettings.py index 9aaaa10d..d2f7e0d3 100644 --- a/gensettings.py +++ b/gensettings.py @@ -708,7 +708,6 @@ gensettingstf = [ "children": [ {"text": "Legacy", "value": 0}, {"text": "Messages", "value": 1}, - {"text": "Bubbles", "value": 2} ], }, { diff --git a/static/koboldai.js b/static/koboldai.js index 04da601d..2b92859d 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -426,7 +426,7 @@ function do_story_text_updates(action) { let item = null; if (chat.useV2) { - console.log(`[story_text_update] ${action.id}`) + //console.log(`[story_text_update] ${action.id}`) if (action.id === chat.lastEdit) { // Swallow update if we just caused it chat.lastEdit = null; @@ -6019,6 +6019,7 @@ function addMessage(author, content, actionId, afterMsgEl=null, time=null) { computeChatGametext(actionId); }); + message.scrollIntoView(); return message; } @@ -6083,9 +6084,8 @@ function updateChatStyle() { const storyArea = document.getElementById("Selected Text"); if (chat.useV2) { - // Already bubbles, do nothing + // Already v2, do nothing if (document.getElementsByClassName("chat-message").length) { - console.info("Already bubbles, do nothing") return; }