mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-01 12:42:28 +08:00
fix(left-pane): preferred width is not restored (closes #990)
This commit is contained in:
parent
148e166f5e
commit
8e3faffd35
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user