fix: null setting when cancelling prompt
This commit is contained in:
parent
1ce493fe58
commit
7fd3e70099
1 changed files with 12 additions and 9 deletions
3
main.js
3
main.js
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue