From 3b4b4deecf7b0fdca7f44c5f86f05678a7c6f002 Mon Sep 17 00:00:00 2001 From: mic Date: Wed, 17 Apr 2024 23:03:52 +0200 Subject: [PATCH] Fixed a bug with reversed paragraphs in replies. --- js/mzta-compose-script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/mzta-compose-script.js b/js/mzta-compose-script.js index e9c75643..374c8b76 100644 --- a/js/mzta-compose-script.js +++ b/js/mzta-compose-script.js @@ -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"); if (prefix.length > 0) { const divider = prefix[0]; @@ -59,7 +59,7 @@ const insertReply = function (text) { window.document.body.insertBefore(p, sibling); }); } -} +}*/ browser.runtime.onMessage.addListener((message) => { @@ -100,7 +100,7 @@ switch (message.command) { return Promise.resolve(window.document.body.innerText); case "insertText": - insertReply(message.text); + insert(message.text); break; case 'promptTooLong':