fixed arguments for windows.remove in chatgpt web interface
This commit is contained in:
parent
053fb9c541
commit
612c0e72d1
1 changed files with 2 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ function addCustomDiv(prompt_action,tabId,mailMessageId) {
|
||||||
btn_ok.onclick = async function() {
|
btn_ok.onclick = async function() {
|
||||||
const response = getSelectedHtml();
|
const response = getSelectedHtml();
|
||||||
await browser.runtime.sendMessage({command: "chatgpt_replyMessage", text: response, tabId: tabId, mailMessageId: mailMessageId});
|
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;
|
break;
|
||||||
case "2": // replace text
|
case "2": // replace text
|
||||||
|
|
@ -183,7 +183,7 @@ function addCustomDiv(prompt_action,tabId,mailMessageId) {
|
||||||
const response = getSelectedHtml();
|
const response = getSelectedHtml();
|
||||||
//console.log('replace text: '+tabId)
|
//console.log('replace text: '+tabId)
|
||||||
await browser.runtime.sendMessage({command: "chatgpt_replaceSelectedText", text: response, tabId: tabId, mailMessageId: mailMessageId});
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue