add account switcher to loading screen
This commit is contained in:
@@ -39,7 +39,10 @@ class Localuser{
|
||||
connectionSucceed=0;
|
||||
errorBackoff=0;
|
||||
mfa_enabled:boolean;
|
||||
constructor(userinfo:Specialuser){
|
||||
constructor(userinfo:Specialuser|-1){
|
||||
if(userinfo===-1){
|
||||
return;
|
||||
}
|
||||
this.token=userinfo.token;
|
||||
this.userinfo=userinfo;
|
||||
this.serverurls=this.userinfo.serverurls;
|
||||
@@ -110,7 +113,9 @@ class Localuser{
|
||||
this.outoffocus();
|
||||
this.guilds=[];
|
||||
this.guildids=new Map();
|
||||
this.ws.close(4001)
|
||||
if(this.ws){
|
||||
this.ws.close(4001)
|
||||
}
|
||||
SnowFlake.clear();
|
||||
User.clear();
|
||||
}
|
||||
|
Reference in New Issue
Block a user