fix: import getChatHistory for copy buttons

This commit is contained in:
Russell Ballestrini 2025-07-02 15:08:37 -04:00
parent 36935f0956
commit b5defdde58

View file

@ -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 = '<div style="font-family: system-ui, -apple-system, sans-serif;">';
history.forEach(msg => {