Skip to content

Commit ad86b5b

Browse files
authored
Merge pull request #231 from iceljc/features/refine-chat-window
Features/refine chat window
2 parents 93021f3 + cf04f53 commit ad86b5b

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
@@ -227,7 +227,9 @@
227227
});
228228
229229
function openFrame() {
230-
window.parent.postMessage({ action: "open" }, "*");
230+
if (window.location != window.parent.location) {
231+
window.parent.postMessage({ action: "open" }, "*");
232+
}
231233
}
232234
233235
function resizeChatWindow() {

0 commit comments

Comments
 (0)