From 36d83cefe2dae2ec90b51b2f74a55382ead05bf7 Mon Sep 17 00:00:00 2001 From: stonedDiscord Date: Sun, 22 Dec 2024 17:01:23 +0100 Subject: [PATCH] only show mod stuff when auth is successful --- webAO/packets/handlers/handleAUTH.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/webAO/packets/handlers/handleAUTH.ts b/webAO/packets/handlers/handleAUTH.ts index bbd13312..1433ccfd 100644 --- a/webAO/packets/handlers/handleAUTH.ts +++ b/webAO/packets/handlers/handleAUTH.ts @@ -3,6 +3,8 @@ * @param {Array} args packet arguments */ export const handleAUTH = (args: string[]) => { - (document.getElementById("mod_ui")).href = - `styles/mod.css`; -}; + if (args[1] === "1") { + (document.getElementById("mod_ui")).href = + `styles/mod.css`; + } +}; \ No newline at end of file