fix bugs
This commit is contained in:
parent
0622c2f324
commit
b252a627fc
1 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ export {mobile, getBulkUsers,getBulkInfo,setTheme,Specialuser,getapiurls,adduser
|
||||||
function setTheme(){
|
function setTheme(){
|
||||||
let name=localStorage.getItem("theme");
|
let name=localStorage.getItem("theme");
|
||||||
if(!name){
|
if(!name){
|
||||||
document.body.className="Dark-theme";
|
|
||||||
localStorage.setItem("theme","Dark");
|
localStorage.setItem("theme","Dark");
|
||||||
name="Dark";
|
name="Dark";
|
||||||
}
|
}
|
||||||
|
@ -144,7 +143,7 @@ async function getapiurls(str:string):Promise<{api:string,cdn:string,gateway:str
|
||||||
wellknown: str,
|
wellknown: str,
|
||||||
};
|
};
|
||||||
}catch{
|
}catch{
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue