diff --git a/examples/server/public/index.html b/examples/server/public/index.html index 268956abf..6dcdd9c55 100644 --- a/examples/server/public/index.html +++ b/examples/server/public/index.html @@ -529,8 +529,9 @@ alert('Invalid JSON for custom config. Please either fix it or leave it empty.'); return; } + console.log(this.config) 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)`); return; }