Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: ignore `Could not connect to the Sync server` error

Abdullah Attafc5507bdd3f4
diff --git a/apps/web/src/stores/app-store.js b/apps/web/src/stores/app-store.js
index c2f0ed70c..7b6f7e23a 100644
--- a/apps/web/src/stores/app-store.js
+++ b/apps/web/src/stores/app-store.js
@@ -317,7 +317,11 @@ class AppStore extends BaseStore {
this.updateSyncStatus("failed");
}
- if (err?.message?.indexOf("Failed to fetch") > -1) return;
+ if (
+ err?.message?.indexOf("Failed to fetch") > -1 ||
+ err?.message?.indexOf("Could not connect to the Sync server.") > -1
+ )
+ return;
showToast("error", err.message);
}