Merge branch 'main' into feat/colors
This commit is contained in:
commit
efceae4f4c
21
main.js
21
main.js
|
@ -964,17 +964,20 @@ function editsetting(name)
|
|||
if (type != "undefined")
|
||||
{
|
||||
value = prompt(name, value);
|
||||
if (type == "number")
|
||||
if (value !== null)
|
||||
{
|
||||
value = parseInt(value);
|
||||
if (type == "number")
|
||||
{
|
||||
value = parseInt(value);
|
||||
}
|
||||
else if (type == "boolean")
|
||||
{
|
||||
value = value === "true";
|
||||
}
|
||||
settings[name] = value;
|
||||
savesettings();
|
||||
loadsettings();
|
||||
}
|
||||
else if (type == "boolean")
|
||||
{
|
||||
value = value === "true";
|
||||
}
|
||||
settings[name] = value;
|
||||
savesettings();
|
||||
loadsettings();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue