From 612c0e72d13ad18d082eed4128a1b4ce5faba83a Mon Sep 17 00:00:00 2001 From: mic Date: Wed, 28 Aug 2024 22:08:23 +0200 Subject: [PATCH] fixed arguments for windows.remove in chatgpt web interface --- js/mzta-chatgpt.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mzta-chatgpt.js b/js/mzta-chatgpt.js index 9d8f4855..e94fba21 100644 --- a/js/mzta-chatgpt.js +++ b/js/mzta-chatgpt.js @@ -173,7 +173,7 @@ function addCustomDiv(prompt_action,tabId,mailMessageId) { btn_ok.onclick = async function() { const response = getSelectedHtml(); await browser.runtime.sendMessage({command: "chatgpt_replyMessage", text: response, tabId: tabId, mailMessageId: mailMessageId}); - browser.runtime.sendMessage({command: "chatgpt_close"}); + browser.runtime.sendMessage({command: "chatgpt_close", window_id: mztaWinId}); }; break; case "2": // replace text @@ -183,7 +183,7 @@ function addCustomDiv(prompt_action,tabId,mailMessageId) { const response = getSelectedHtml(); //console.log('replace text: '+tabId) await browser.runtime.sendMessage({command: "chatgpt_replaceSelectedText", text: response, tabId: tabId, mailMessageId: mailMessageId}); - browser.runtime.sendMessage({command: "chatgpt_close"}); + browser.runtime.sendMessage({command: "chatgpt_close", window_id: mztaWinId}); }; break; }