web: make app work in offline mode

This commit is contained in:
Abdullah Atta
2024-03-22 08:19:28 +05:00
parent 799678efca
commit 97490a5e37
4 changed files with 9 additions and 69 deletions

View File

@@ -309,7 +309,7 @@ class Database {
// we must not wait on network requests that's why
// no await
this.monographs.refresh();
this.monographs.refresh().catch(console.error);
}
disconnectSSE() {

View File

@@ -267,7 +267,7 @@ class Sync {
async stop() {
// refresh monographs
await this.db.monographs.refresh();
await this.db.monographs.refresh().catch(console.error);
// update trash cache
await this.db.trash.buildCache();