From f735a45894635c51882520e17507da29c83fbffd Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Fri, 12 Dec 2025 14:51:22 -0600 Subject: [PATCH] add connections type --- src/webpage/localuser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webpage/localuser.ts b/src/webpage/localuser.ts index f6f1058..f387361 100644 --- a/src/webpage/localuser.ts +++ b/src/webpage/localuser.ts @@ -2834,7 +2834,7 @@ class Localuser { fetch(this.info.api + "/connections", { headers: this.headers, }) - .then((r) => r.json()) + .then((r) => r.json() as Promise<{[key: string]: {enabled: boolean}}>) .then((json) => { Object.keys(json) .sort((key) => (json[key].enabled ? -1 : 1))