Fixed a bug with reversed paragraphs in replies.

This commit is contained in:
mic 2024-04-17 23:03:52 +02:00
parent ab3552ea67
commit 3b4b4deecf

View file

@ -50,7 +50,7 @@ const insert = function (text) {
}); });
} }
const insertReply = function (text) { /*const insertReply = function (text) {
const prefix = window.document.body.getElementsByClassName("moz-cite-prefix"); const prefix = window.document.body.getElementsByClassName("moz-cite-prefix");
if (prefix.length > 0) { if (prefix.length > 0) {
const divider = prefix[0]; const divider = prefix[0];
@ -59,7 +59,7 @@ const insertReply = function (text) {
window.document.body.insertBefore(p, sibling); window.document.body.insertBefore(p, sibling);
}); });
} }
} }*/
browser.runtime.onMessage.addListener((message) => { browser.runtime.onMessage.addListener((message) => {
@ -100,7 +100,7 @@ switch (message.command) {
return Promise.resolve(window.document.body.innerText); return Promise.resolve(window.document.body.innerText);
case "insertText": case "insertText":
insertReply(message.text); insert(message.text);
break; break;
case 'promptTooLong': case 'promptTooLong':