Various fixes

This commit is contained in:
MathMan05 2024-11-06 11:58:01 -06:00
parent 0d4ca2d68a
commit 49cdb8fda6
7 changed files with 67 additions and 9 deletions

View file

@ -89,7 +89,7 @@ function trimswitcher(){
}
function getBulkInfo(){
return JSON.parse(localStorage.getItem("userinfos")!);
return JSON.parse(localStorage.getItem("userinfos") as string);
}
function setDefaults(){
let userinfos = getBulkInfo();
@ -126,6 +126,7 @@ function setDefaults(){
};
}
if(userinfos.preferences && userinfos.preferences.notisound === undefined){
console.warn("uhoh")
userinfos.preferences.notisound = "three";
}
localStorage.setItem("userinfos", JSON.stringify(userinfos));