Fix: Remove await from non-async context that broke floating button
This commit is contained in:
parent
7e5fa104ca
commit
b9d52dc727
1 changed files with 1 additions and 1 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue