mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-26 16:04:46 +03:00
fix(core): skip background syncing in the web (#4077)
This commit is contained in:
parent
a2e4ef904b
commit
97a0969583
@ -35,6 +35,9 @@ const downloadRecursive = async (
|
|||||||
};
|
};
|
||||||
|
|
||||||
export async function startSync() {
|
export async function startSync() {
|
||||||
|
if (!environment.isDesktop) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
abortController = new AbortController();
|
abortController = new AbortController();
|
||||||
const signal = abortController.signal;
|
const signal = abortController.signal;
|
||||||
const workspaces = await CRUD.list();
|
const workspaces = await CRUD.list();
|
||||||
|
Loading…
Reference in New Issue
Block a user