From b9d52dc7275935eb1eec8cfdb6eb0f4526d52929 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Tue, 1 Jul 2025 10:15:36 -0400 Subject: [PATCH] Fix: Remove await from non-async context that broke floating button --- src/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui.js b/src/ui.js index d4b823e..b552ee4 100644 --- a/src/ui.js +++ b/src/ui.js @@ -837,6 +837,7 @@ export async function openHermesModal() { const { loadConversationHistory, saveConversationHistory, clearConversationHistory } = await import('./storage.js'); const { extractWebpageContent } = await import('./content.js'); const { sendMessage } = await import('./chat.js'); + const { getSystemMessage } = await import('./config.js'); // Restore conversation history in modal function restoreConversationHistory() { @@ -859,7 +860,6 @@ export async function openHermesModal() { savedHistory.splice(messageIndex, 1); localStorage.setItem(getPageSpecificKey('hermes-conversation-history'), JSON.stringify(savedHistory)); // Update global chat history - const { getSystemMessage } = await import('./config.js'); chatHistory = [ { role: "system",