From 7ddfc41130b667f3fbb26b316cdcfd9eb2086621 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 10 Dec 2024 21:20:31 +0100 Subject: [PATCH] listeners are no more async --- mzta-background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mzta-background.js b/mzta-background.js index 7ae5b4ea..b5104280 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -384,7 +384,7 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_ let rand_call_id3 = '_ollama_' + generateCallID(); - const listener3 = async (message, sender, sendResponse) => { + const listener3 = (message, sender, sendResponse) => { function handleOllamaApi(createdTab3) { taLog.log("Ollama API window ready."); @@ -440,7 +440,7 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_ let rand_call_id4 = '_openai_comp_api_' + generateCallID(); - const listener4 = async (message, sender, sendResponse) => { + const listener4 = (message, sender, sendResponse) => { function handleOpenAICompApi(createdTab) { let mailMessageId4 = -1;