remember colasped catagories

This commit is contained in:
MathMan05 2024-09-02 17:59:27 -05:00
parent c2d657d889
commit a47772dd01
8 changed files with 91 additions and 8 deletions

View file

@ -43,12 +43,19 @@ class Localuser{
name: "Unknown",
};
mfa_enabled:boolean;
get perminfo(){
return this.userinfo.localuserStore;
}
set perminfo(e){
this.userinfo.localuserStore=e;
}
constructor(userinfo:Specialuser|-1){
if(userinfo===-1){
return;
}
this.token=userinfo.token;
this.userinfo=userinfo;
this.perminfo.guilds??={};
this.serverurls=this.userinfo.serverurls;
this.initialized=false;
this.info=this.serverurls;
@ -109,6 +116,7 @@ class Localuser{
}
this.pingEndpoint();
this.userinfo.updateLocal();
}
outoffocus():void{
const servers=document.getElementById("servers") as HTMLDivElement;
@ -1447,4 +1455,4 @@ class Localuser{
dialog.show();
}
}
export {Localuser};
export {Localuser};