From 36656fb6692070d7aa70ffc8d687583efc70517b Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Sun, 30 Nov 2025 15:00:24 -0600 Subject: [PATCH] status improvement --- src/webpage/localuser.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index 9c7dfec..c7d88d5 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -170,9 +170,7 @@ class Localuser { const opt = d.float.options; const selection = ["online", "invisible", "dnd", "idle"] as const; const smap = selection.map((_) => I18n.user[_]()); - let index = selection.indexOf( - sessionStorage.getItem("status") as "online" | "invisible" | "dnd" | "idle", - ); + let index = selection.indexOf(this.status as "online" | "invisible" | "dnd" | "idle"); if (index === -1) { index = 0; }