Skip to content

Commit c809d6a

Browse files
author
Jicheng Lu
committed
refine event
1 parent 8e710db commit c809d6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@
223223
});
224224
225225
function openFrame() {
226-
window.parent.postMessage({ action: "open" }, "*");
226+
if (window.location != window.parent.location) {
227+
window.parent.postMessage({ action: "open" }, "*");
228+
}
227229
}
228230
229231
function resizeChatWindow() {

0 commit comments

Comments
 (0)