diff --git a/src/public/app/services/options.ts b/src/public/app/services/options.ts index 660861d17..c20c5bfe0 100644 --- a/src/public/app/services/options.ts +++ b/src/public/app/services/options.ts @@ -36,10 +36,14 @@ class Options { getInt(key: string) { const value = this.arr?.[key]; - if (typeof value !== "string") { - return null; + if (typeof value === "number") { + return value; } - return parseInt(value); + if (typeof value == "string") { + return parseInt(value); + } + console.warn("Attempting to read int for unsupported value: ", value); + return null; } getFloat(key: string) {