fix(client): uninitialized field

This commit is contained in:
Elian Doran 2025-06-09 22:40:45 +03:00
parent 0ff8b7edd8
commit ceb6134af2
No known key found for this signature in database

View File

@ -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();
} }
} }