Restructure code

This commit is contained in:
jude
2023-10-08 18:24:04 +01:00
parent 55acc8fd16
commit ca13fd4fa7
16 changed files with 941 additions and 840 deletions

View File

@ -463,15 +463,16 @@ document.addEventListener("guildSwitched", async (e) => {
let hasError = false;
if ($anchor !== null) {
$anchor.classList.add("is-active");
}
if (pane() === null) {
window.history.replaceState({}, "", `/dashboard/${guildId()}/reminders`);
}
switch_pane(pane());
if ($anchor !== null) {
$anchor.classList.add("is-active");
}
reset_guild_pane();
if (globalPatreon || (await fetch_patreon(e.detail.guild_id))) {