Fix some mobile styles. Fix race condition in client side
This commit is contained in:
@ -595,7 +595,7 @@ document.querySelectorAll(".show-modal").forEach((element) => {
|
||||
});
|
||||
});
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
document.addEventListener("DOMContentLoaded", async () => {
|
||||
$loader.classList.remove("is-hidden");
|
||||
|
||||
mentions.attach(document.querySelectorAll("textarea"));
|
||||
@ -615,7 +615,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
hideBox.closest(".reminderContent").classList.toggle("is-collapsed");
|
||||
});
|
||||
|
||||
fetch("/dashboard/api/user")
|
||||
await fetch("/dashboard/api/user")
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
if (data.error) {
|
||||
@ -629,7 +629,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
||||
}
|
||||
});
|
||||
|
||||
fetch("/dashboard/api/user/guilds")
|
||||
await fetch("/dashboard/api/user/guilds")
|
||||
.then((response) => response.json())
|
||||
.then((data) => {
|
||||
if (data.error) {
|
||||
|
Reference in New Issue
Block a user