fix: null setting when cancelling prompt

This commit is contained in:
quenousimporte 2023-09-27 09:09:16 +02:00
parent 1ce493fe58
commit 7fd3e70099
1 changed files with 12 additions and 9 deletions

View File

@ -947,6 +947,8 @@ function editsetting(name)
if (type != "undefined")
{
value = prompt(name, value);
if (value !== null)
{
if (type == "number")
{
value = parseInt(value);
@ -961,6 +963,7 @@ function editsetting(name)
}
}
}
}
function changesetting()
{