error message improved
This commit is contained in:
parent
37ec6ca76a
commit
ca912be91b
1 changed files with 2 additions and 2 deletions
|
|
@ -59,13 +59,13 @@ worker.onmessage = function(event) {
|
||||||
messagesArea.appendBotMessage(payload);
|
messagesArea.appendBotMessage(payload);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error('Unknown event type from worker:', type);
|
console.error('[ThunderAI] Unknown event type from API worker:', type);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// handling commands from the backgoound page
|
// handling commands from the backgoound page
|
||||||
browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
browser.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||||
console.log(">>>>>>>>>>>>> controller.js onMessage: " + JSON.stringify(message));
|
//console.log(">>>>>>>>>>>>> controller.js onMessage: " + JSON.stringify(message));
|
||||||
if (message.command === "chatgpt_send") {
|
if (message.command === "chatgpt_send") {
|
||||||
//send the received prompt to the chatgpt api
|
//send the received prompt to the chatgpt api
|
||||||
messageInput._setMessageInputValue(message.prompt);
|
messageInput._setMessageInputValue(message.prompt);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue