fixed arguments for windows.remove in chatgpt web interface

This commit is contained in:
mic 2024-08-28 22:08:23 +02:00
parent 053fb9c541
commit 612c0e72d1

View file

@ -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;
}