From 9d06f6c86808ed62ee0be402108123c222f95388 Mon Sep 17 00:00:00 2001 From: mic Date: Thu, 19 Jun 2025 22:35:28 +0200 Subject: [PATCH] log statements added --- mzta-background.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mzta-background.js b/mzta-background.js index f6cf5d65..237f34d8 100644 --- a/mzta-background.js +++ b/mzta-background.js @@ -203,6 +203,7 @@ messenger.runtime.onMessage.addListener((message, sender, sendResponse) => { case 'chatgpt_replaceSelectedText': async function _replaceSelectedText(tabId, text) { //console.log('chatgpt_replaceSelectedText: [' + tabId +'] ' + text) + taLog.log("chatgpt_replaceSelectedText text: " + text); original_html = await getOriginalBody(tabId); let prefs_repl = await browser.storage.sync.get({composing_plain_text: prefs_default.composing_plain_text}); if(prefs_repl.composing_plain_text){ @@ -216,6 +217,7 @@ messenger.runtime.onMessage.addListener((message, sender, sendResponse) => { async function _replyMessage(message) { let paragraphsHtmlString = message.text; //console.log(">>>>>>>>>>>> paragraphsHtmlString: " + paragraphsHtmlString); + taLog.log("paragraphsHtmlString: " + paragraphsHtmlString); let prefs_reply = await browser.storage.sync.get({reply_type: prefs_default.reply_type, composing_plain_text: prefs_default.composing_plain_text}); if(prefs_reply.composing_plain_text){ paragraphsHtmlString = stripHtmlKeepLines(paragraphsHtmlString);