Merge branch 'main' into feat/colors

This commit is contained in:
quenousimporte 2023-09-27 09:09:29 +02:00
commit efceae4f4c
1 changed files with 12 additions and 9 deletions

21
main.js
View File

@ -964,17 +964,20 @@ function editsetting(name)
if (type != "undefined") if (type != "undefined")
{ {
value = prompt(name, value); 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();
} }
} }
} }