Fixed defualt theme not loading

This commit is contained in:
MathMan05 2024-06-29 13:35:28 -05:00
parent 21c958c699
commit 96b2dbb21c
2 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@ function setDefaults() {
notisound: "three", notisound: "three",
}, },
})); }));
userinfos = getBulkInfo();
} }
if (userinfos.users === undefined) { if (userinfos.users === undefined) {
userinfos.users = {}; userinfos.users = {};

View file

@ -20,7 +20,7 @@ function getBulkInfo(){
return JSON.parse(localStorage.getItem("userinfos")); return JSON.parse(localStorage.getItem("userinfos"));
} }
function setDefaults(){ function setDefaults(){
let userinfos=getBulkInfo() let userinfos=getBulkInfo();
if(!userinfos){ if(!userinfos){
localStorage.setItem("userinfos",JSON.stringify({ localStorage.setItem("userinfos",JSON.stringify({
currentuser:null, currentuser:null,
@ -32,6 +32,7 @@ function setDefaults(){
notisound:"three", notisound:"three",
}, },
})); }));
userinfos=getBulkInfo();
} }
if(userinfos.users===undefined){ if(userinfos.users===undefined){
userinfos.users={}; userinfos.users={};