log statements added
This commit is contained in:
parent
506abe7a07
commit
9d06f6c868
1 changed files with 2 additions and 0 deletions
|
|
@ -203,6 +203,7 @@ messenger.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||||
case 'chatgpt_replaceSelectedText':
|
case 'chatgpt_replaceSelectedText':
|
||||||
async function _replaceSelectedText(tabId, text) {
|
async function _replaceSelectedText(tabId, text) {
|
||||||
//console.log('chatgpt_replaceSelectedText: [' + tabId +'] ' + text)
|
//console.log('chatgpt_replaceSelectedText: [' + tabId +'] ' + text)
|
||||||
|
taLog.log("chatgpt_replaceSelectedText text: " + text);
|
||||||
original_html = await getOriginalBody(tabId);
|
original_html = await getOriginalBody(tabId);
|
||||||
let prefs_repl = await browser.storage.sync.get({composing_plain_text: prefs_default.composing_plain_text});
|
let prefs_repl = await browser.storage.sync.get({composing_plain_text: prefs_default.composing_plain_text});
|
||||||
if(prefs_repl.composing_plain_text){
|
if(prefs_repl.composing_plain_text){
|
||||||
|
|
@ -216,6 +217,7 @@ messenger.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||||
async function _replyMessage(message) {
|
async function _replyMessage(message) {
|
||||||
let paragraphsHtmlString = message.text;
|
let paragraphsHtmlString = message.text;
|
||||||
//console.log(">>>>>>>>>>>> paragraphsHtmlString: " + paragraphsHtmlString);
|
//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});
|
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){
|
if(prefs_reply.composing_plain_text){
|
||||||
paragraphsHtmlString = stripHtmlKeepLines(paragraphsHtmlString);
|
paragraphsHtmlString = stripHtmlKeepLines(paragraphsHtmlString);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue