Realized I forgot a couple of lines, this should hopefully ensure consistent behavior.

Just making sure that already formatted text will still be "postable" if something goes wrong. Most of this shit is irrelevant unless you are under the effect of the hieroglyph award.
master
Count_Sprpr 2024-09-28 12:26:40 +00:00
parent b3331bf672
commit b1558dc5e3
1 changed files with 144 additions and 142 deletions

View File

@ -88,6 +88,8 @@ document.addEventListener("click", function (event) {
let unformattedText = textBox.value; let unformattedText = textBox.value;
//If the text has already been formatted, indicated by the unformatted text starting with ":", don't do it again. This is flawed, I know. //If the text has already been formatted, indicated by the unformatted text starting with ":", don't do it again. This is flawed, I know.
if (unformattedText[0] === ":") { if (unformattedText[0] === ":") {
event.target.setAttribute('data-onclick', funcFull);
event.target.click();
return; return;
} }
// Do I need to initialize this to a string? Probably not, but it makes it easier to work with in VScode // Do I need to initialize this to a string? Probably not, but it makes it easier to work with in VScode