small bug fix
This commit is contained in:
parent
7602985f7a
commit
f67ecccc7d
1 changed files with 5 additions and 1 deletions
|
@ -209,7 +209,11 @@ async function MastodonOtherFunction(Id, post, IsThread) {
|
|||
OtherPost = post;
|
||||
}
|
||||
let ShitHTML = "<header> <h1 class=\"Handle " + Id + "\"> " + OtherPost.account.acct + "</h1> <h2 class=\"Origin " + Id + "\"> " + website + "</h2> </header> <p class=\"PostText " + Id + "\"></p> <div class=\"Images " + Id + "\"></div> <hr/>";
|
||||
document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
|
||||
if (IsThread == true) {
|
||||
document.getElementsByTagName("body")[0].insertAdjacentHTML("afterbegin", ShitHTML);
|
||||
} else {
|
||||
document.getElementsByTagName("body")[0].insertAdjacentHTML("beforeend", ShitHTML);
|
||||
}
|
||||
if (OtherPost.spoiler_text != "") {
|
||||
document.getElementsByClassName("PostText " + Id)[0].innerHTML = "WARNING: " + OtherPost.spoiler_text;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Reference in a new issue