Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix(core): skip background syncing in the web (#4077)

Alex Yang97a09695832a
diff --git a/packages/workspace/src/affine/sync.ts b/packages/workspace/src/affine/sync.ts
index 1e47bde0da..c72d5d64f9 100644
--- a/packages/workspace/src/affine/sync.ts
+++ b/packages/workspace/src/affine/sync.ts
@@ -35,6 +35,9 @@ const downloadRecursive = async (
};
export async function startSync() {
+ if (!environment.isDesktop) {
+ return;
+ }
abortController = new AbortController();
const signal = abortController.signal;
const workspaces = await CRUD.list();