From 07085b431e4d8b944fa9783407b6262fe0df90a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Wed, 18 Sep 2024 20:58:12 +0200 Subject: [PATCH] pl-fe: fix? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/utils/sw.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pl-fe/src/utils/sw.ts b/packages/pl-fe/src/utils/sw.ts index 7378f44343..b6da4737fb 100644 --- a/packages/pl-fe/src/utils/sw.ts +++ b/packages/pl-fe/src/utils/sw.ts @@ -1,7 +1,7 @@ /** Register the ServiceWorker. */ const registerSW = (path: string) => { if ('serviceWorker' in navigator) { - navigator.serviceWorker.register(path, { scope: '/' }); + navigator.serviceWorker.register?.(path, { scope: '/' }); } };