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",
|
notisound: "three",
|
||||||
},
|
},
|
||||||
}));
|
}));
|
||||||
|
userinfos = getBulkInfo();
|
||||||
}
|
}
|
||||||
if (userinfos.users === undefined) {
|
if (userinfos.users === undefined) {
|
||||||
userinfos.users = {};
|
userinfos.users = {};
|
||||||
|
|
|
@ -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={};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue