commented out debug console logs for Intl.Segmenter in tb115_loader.js and messagesArea.js

This commit is contained in:
mic 2025-04-27 21:33:30 +02:00
parent 8ddde5de75
commit 0214885a9f
2 changed files with 2 additions and 2 deletions

View file

@ -242,7 +242,7 @@ class MessagesArea extends HTMLElement {
browser.runtime.sendMessage({command: "chatgpt_close", window_id: (await browser.windows.getCurrent()).id});
break;
case "2": // replace text
console.log("[ThunderAI] (replace text) fullTextHTMLAtAssignment: " + fullTextHTMLAtAssignment);
// console.log("[ThunderAI] (replace text) fullTextHTMLAtAssignment: " + fullTextHTMLAtAssignment);
await browser.runtime.sendMessage({command: "chatgpt_replaceSelectedText", text: fullTextHTMLAtAssignment, tabId: promptData.tabId, mailMessageId: promptData.mailMessageId});
browser.runtime.sendMessage({command: "chatgpt_close", window_id: (await browser.windows.getCurrent()).id});
break;

View file

@ -18,7 +18,7 @@
// Firefox 115 and, consequently, Thunderbird 115 are not compatible with Intl.Segmenter.
// ChatGPT is using Intl.Segmenter, so we have to do something about it or it won't work...
console.log("[ThunderAI] Intl.Segmenter: " + Intl.Segmenter);
// console.log("[ThunderAI] Intl.Segmenter: " + Intl.Segmenter);
(function() {
if('Segmenter' in Intl){