pl-fe: fix?

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-09-18 20:58:12 +02:00
parent 5ad5b6a909
commit 07085b431e

View file

@ -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: '/' });
}
};