mirror of
https://codeberg.org/valpackett/tiddlypwa.git
synced 2025-12-06 02:30:48 -08:00
Plugin: do not drop syncs requested during a sync
Was annoying to not get changes synced when writing something quickly while the server is waking up
This commit is contained in:
parent
98f9bece17
commit
e7e36fe244
1 changed files with 5 additions and 0 deletions
|
|
@ -1191,10 +1191,15 @@ Formatted with `deno fmt`.
|
|||
this.afterSyncOnceHook();
|
||||
delete this.afterSyncOnceHook;
|
||||
}
|
||||
if (this.wantResync) {
|
||||
this.wantResync = false;
|
||||
this.backgroundSync();
|
||||
}
|
||||
}
|
||||
|
||||
sync(all) {
|
||||
if (this.isSyncing) {
|
||||
this.wantResync = true;
|
||||
return;
|
||||
}
|
||||
this.isSyncing = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue