fix closeAndSaveConfigDialog

This commit is contained in:
Xuan Son Nguyen 2024-11-07 07:15:19 -04:00
parent dc1b0775fa
commit f2268fad81

View file

@ -530,7 +530,7 @@
return;
}
for (const key of CONFIG_NUMERIC_KEYS) {
if (!isNumeric(this.config[key])) {
if (!isNaN(this.config[key]) && this.config[key].trim().length > 0) {
alert(`Invalid number for ${key} (expected an integer or a float)`);
return;
}