console.log statement temporary commented out, wating for #106
This commit is contained in:
parent
2e42a30c3e
commit
fa6127bcae
2 changed files with 5 additions and 5 deletions
|
|
@ -239,7 +239,7 @@ function checkGPT4Model() {
|
|||
for(element of elements){
|
||||
// Check if the element exists and its content is '4' or '4o'
|
||||
if ((element && element.textContent === '4')||(element && element.textContent === '4o')||(force_go)) {
|
||||
console.log("[ThunderAI] The GPT Model is now '4' or '4o'");
|
||||
// console.log("[ThunderAI] The GPT Model is now '4' or '4o'");
|
||||
clearInterval(intervalId);
|
||||
clearTimeout(intervalId2);
|
||||
document.getElementById('mzta-model_warn').style.display = 'none';
|
||||
|
|
@ -247,7 +247,7 @@ function checkGPT4Model() {
|
|||
resolve("GPT4");
|
||||
break;
|
||||
} else if (!element) {
|
||||
console.log("[ThunderAI] Element not found!");
|
||||
console.error("[ThunderAI] Element not found!");
|
||||
clearInterval(intervalId);
|
||||
reject("Element not found.");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ messenger.runtime.onMessage.addListener(async (message, sender, sendResponse) =>
|
|||
// return true;
|
||||
case 'chatgpt_close':
|
||||
browser.windows.remove(createdWindowID).then(() => {
|
||||
console.log("[ThunderAI] ChatGPT window closed successfully.");
|
||||
// console.log("[ThunderAI] ChatGPT window closed successfully.");
|
||||
return true;
|
||||
}).catch((error) => {
|
||||
console.error("[ThunderAI] Error closing ChatGPT window:", error);
|
||||
|
|
@ -169,7 +169,7 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_
|
|||
height: prefs.chatgpt_win_height
|
||||
});
|
||||
|
||||
console.log("[ThunderAI] ChatGPT web interface script started...");
|
||||
// console.log("[ThunderAI] ChatGPT web interface script started...");
|
||||
createdWindowID = newWindow.id;
|
||||
let createdTab = newWindow.tabs[0];
|
||||
|
||||
|
|
@ -201,7 +201,7 @@ async function openChatGPT(promptText, action, curr_tabId, prompt_name = '', do_
|
|||
|
||||
browser.tabs.executeScript(createdTab.id, { code: pre_script + mzta_script, matchAboutBlank: false })
|
||||
.then(async () => {
|
||||
console.log("[ThunderAI] ChatGPT web interface script injected successfully");
|
||||
// console.log("[ThunderAI] ChatGPT web interface script injected successfully");
|
||||
let mailMessage = await browser.messageDisplay.getDisplayedMessage(curr_tabId);
|
||||
let mailMessageId = -1;
|
||||
if(mailMessage) mailMessageId = mailMessage.id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue