small fix
This commit is contained in:
parent
f2268fad81
commit
f51c78bbfa
1 changed files with 2 additions and 1 deletions
|
@ -529,8 +529,9 @@
|
||||||
alert('Invalid JSON for custom config. Please either fix it or leave it empty.');
|
alert('Invalid JSON for custom config. Please either fix it or leave it empty.');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
console.log(this.config)
|
||||||
for (const key of CONFIG_NUMERIC_KEYS) {
|
for (const key of CONFIG_NUMERIC_KEYS) {
|
||||||
if (!isNaN(this.config[key]) && this.config[key].trim().length > 0) {
|
if (isNaN(this.config[key]) || this.config[key].toString().trim().length === 0) {
|
||||||
alert(`Invalid number for ${key} (expected an integer or a float)`);
|
alert(`Invalid number for ${key} (expected an integer or a float)`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue