mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
web: make app work in offline mode
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user