diff --git a/klite.embd b/klite.embd index 6802e5717..1d9a652b0 100644 --- a/klite.embd +++ b/klite.embd @@ -9665,18 +9665,18 @@ Current version: 82 if(localsettings.opmode==3 && localsettings.gui_type_chat==1) { render_enhanced_chat(textToRender); - if (localsettings.opmode == 3 && localsettings.chatopponent != "" && localsettings.chatopponent.includes("||$||")) { - document.getElementById("chat_btnmode_chat").classList.remove("hidden"); - document.getElementById("cht_inp").classList.add("shorter"); - } else { - document.getElementById("chat_btnmode_chat").classList.add("hidden"); - document.getElementById("cht_inp").classList.remove("shorter"); - } } else { document.getElementById("chat_msg_body").innerHTML = render_enhanced_chat_instruct(textToRender,false); } + if (localsettings.opmode == 3 && localsettings.chatopponent != "" && localsettings.chatopponent.includes("||$||")) { + document.getElementById("chat_btnmode_chat").classList.remove("hidden"); + document.getElementById("cht_inp").classList.add("shorter"); + } else { + document.getElementById("chat_btnmode_chat").classList.add("hidden"); + document.getElementById("cht_inp").classList.remove("shorter"); + } // Show the 'AI is typing' message if an answer is pending, and prevent the 'send button' from being clicked again. if (pending_response_id=="") { document.getElementById("chatistyping").classList.add("hidden"); }