mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-07-28 22:59:25 +00:00
add connections type
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user