From b5defdde5831dccb07d75ec68033409720c05635 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 2 Jul 2025 15:08:37 -0400 Subject: [PATCH] fix: import getChatHistory for copy buttons --- src/ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui.js b/src/ui.js index 12c2f06..5d84ab3 100644 --- a/src/ui.js +++ b/src/ui.js @@ -1046,6 +1046,7 @@ async function openUncloseaiEmbeddedModalNew() { { text: "🌐 Translate", action: () => window.openTranslateModal() }, { text: "📋 Full Raw", action: async () => { try { + const { getChatHistory } = await import('./chat.js'); const history = getChatHistory(); let rawContent = ''; history.forEach(msg => { @@ -1063,6 +1064,7 @@ async function openUncloseaiEmbeddedModalNew() { }}, { text: "📄 Full HTML", action: async () => { try { + const { getChatHistory } = await import('./chat.js'); const history = getChatHistory(); let htmlContent = '
'; history.forEach(msg => {