Fixed defualt theme not loading
This commit is contained in:
parent
21c958c699
commit
96b2dbb21c
2 changed files with 3 additions and 1 deletions
|
@ -31,6 +31,7 @@ function setDefaults() {
|
|||
notisound: "three",
|
||||
},
|
||||
}));
|
||||
userinfos = getBulkInfo();
|
||||
}
|
||||
if (userinfos.users === undefined) {
|
||||
userinfos.users = {};
|
||||
|
|
|
@ -20,7 +20,7 @@ function getBulkInfo(){
|
|||
return JSON.parse(localStorage.getItem("userinfos"));
|
||||
}
|
||||
function setDefaults(){
|
||||
let userinfos=getBulkInfo()
|
||||
let userinfos=getBulkInfo();
|
||||
if(!userinfos){
|
||||
localStorage.setItem("userinfos",JSON.stringify({
|
||||
currentuser:null,
|
||||
|
@ -32,6 +32,7 @@ function setDefaults(){
|
|||
notisound:"three",
|
||||
},
|
||||
}));
|
||||
userinfos=getBulkInfo();
|
||||
}
|
||||
if(userinfos.users===undefined){
|
||||
userinfos.users={};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue