From 8213337799dc017ffbb5cc7c9a5a85aeee1bbba8 Mon Sep 17 00:00:00 2001 From: ledouxm Date: Wed, 6 Nov 2024 10:19:46 +0100 Subject: [PATCH] maybe? --- packages/frontend/src/service-worker/sw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frontend/src/service-worker/sw.ts b/packages/frontend/src/service-worker/sw.ts index 82b92cf..15135b8 100644 --- a/packages/frontend/src/service-worker/sw.ts +++ b/packages/frontend/src/service-worker/sw.ts @@ -55,7 +55,7 @@ const syncPicturesById = async (ids: string[], token: string) => { const url = await get("url", apiStore); - if (!url) throw new Error("no backend url in service worker"); + if (!url) return void console.error("no backend url in service worker"); const api = createApiClientWithUrl(url);