diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index a2d63e80..3f6ddec7 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -227,7 +227,9 @@ }); function openFrame() { - window.parent.postMessage({ action: "open" }, "*"); + if (window.location != window.parent.location) { + window.parent.postMessage({ action: "open" }, "*"); + } } function resizeChatWindow() {