Skip to content

Commit

Permalink
fix embed chatbot default open (labring#3774)
Browse files Browse the repository at this point in the history
  • Loading branch information
newfish-cmyk authored Feb 13, 2025
1 parent d3641c8 commit 3cfec37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/app/public/js/iframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -157,5 +156,6 @@ function embedChatbot() {

ChatBtn.appendChild(ChatBtnDiv);
document.body.appendChild(ChatBtn);
updateChatWindowPosition();
}
window.addEventListener('load', embedChatbot);

0 comments on commit 3cfec37

Please sign in to comment.