mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2025-12-13 01:35:57 +00:00
Fix careless mistake
This commit is contained in:
4
main.ts
4
main.ts
@@ -309,9 +309,9 @@ class LocalPouchDB {
|
||||
}
|
||||
// wait
|
||||
waitForLeafReady(id: string): Promise<boolean> {
|
||||
return new Promise((res) => {
|
||||
return new Promise((res, rej) => {
|
||||
// Set timeout.
|
||||
let timer = setTimeout(() => res(false), LEAF_WAIT_TIMEOUT);
|
||||
let timer = setTimeout(() => rej(false), LEAF_WAIT_TIMEOUT);
|
||||
if (typeof this.leafArrivedCallbacks[id] == "undefined") {
|
||||
this.leafArrivedCallbacks[id] = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user