Skip to content

Commit

Permalink
only show mod stuff when auth is successful
Browse files Browse the repository at this point in the history
  • Loading branch information
stonedDiscord committed Dec 22, 2024
1 parent 5928a10 commit 36d83ce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions webAO/packets/handlers/handleAUTH.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* @param {Array} args packet arguments
*/
export const handleAUTH = (args: string[]) => {
(<HTMLAnchorElement>document.getElementById("mod_ui")).href =
`styles/mod.css`;
};
if (args[1] === "1") {
(<HTMLAnchorElement>document.getElementById("mod_ui")).href =
`styles/mod.css`;
}
};

0 comments on commit 36d83ce

Please sign in to comment.