mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
fix embed chatbot default open (#3774)
This commit is contained in:
@@ -114,7 +114,6 @@ function embedChatbot() {
|
||||
if (!chatWindow) return;
|
||||
const visibilityVal = chatWindow.style.visibility;
|
||||
if (visibilityVal === 'hidden') {
|
||||
updateChatWindowPosition();
|
||||
chatWindow.style.visibility = 'unset';
|
||||
ChatBtnDiv.src = CloseIcon;
|
||||
} else {
|
||||
@@ -157,5 +156,6 @@ function embedChatbot() {
|
||||
|
||||
ChatBtn.appendChild(ChatBtnDiv);
|
||||
document.body.appendChild(ChatBtn);
|
||||
updateChatWindowPosition();
|
||||
}
|
||||
window.addEventListener('load', embedChatbot);
|
||||
|
Reference in New Issue
Block a user