Voice setting

This commit is contained in:
MathMan05 2024-10-29 20:53:20 -05:00
parent abc63bc166
commit 7f51b6c89f
3 changed files with 21 additions and 2 deletions

View file

@ -1254,6 +1254,25 @@ class Localuser{
{ initColor: userinfos.accent_color }
);
}
{
const box=tas.addCheckboxInput("Enable experimental Voice support",()=>{},{initState:Boolean(localStorage.getItem("Voice enabled"))});
box.onchange=(e)=>{
if(e){
if(confirm("Are you sure you want to enable this, this is very experimental and is likely to cause issues")){
localStorage.setItem("Voice enabled","true")
}else{
box.value=true;
const checkbox=box.input.deref();
if(checkbox){
checkbox.checked=false;
}
}
}else{
localStorage.removeItem("Voice enabled");
}
}
}
}
{
const security = settings.addButton("Account Settings");