Bug fixes

This commit is contained in:
MathMan05 2024-08-18 12:28:29 -05:00
parent 83802ef6a2
commit 0710685e50
6 changed files with 26 additions and 4 deletions

View file

@ -85,6 +85,7 @@ function showAccountSwitcher() {
}
let thisuser;
try {
console.log(users.users, users.currentuser);
thisuser = new Localuser(users.users[users.currentuser]);
thisuser.initwebsocket().then(_ => {
thisuser.loaduser();
@ -94,7 +95,8 @@ try {
console.log("done loading");
});
}
catch {
catch (e) {
console.error(e);
document.getElementById("load-desc").textContent = "Account unable to start";
thisuser = new Localuser(-1);
}