mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
fix(client): uninitialized field
This commit is contained in:
parent
0ff8b7edd8
commit
ceb6134af2
@ -10,6 +10,8 @@ class Options {
|
|||||||
constructor() {
|
constructor() {
|
||||||
if (!isShare) {
|
if (!isShare) {
|
||||||
this.initializedPromise = server.get<Record<string, OptionValue>>("options").then((data) => this.load(data));
|
this.initializedPromise = server.get<Record<string, OptionValue>>("options").then((data) => this.load(data));
|
||||||
|
} else {
|
||||||
|
this.initializedPromise = Promise.resolve();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user