Fix: Remove await from non-async context that broke floating button

This commit is contained in:
Russell Ballestrini 2025-07-01 10:15:36 -04:00
parent 7e5fa104ca
commit b9d52dc727

View file

@ -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",