pl-fe: fix?
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
5ad5b6a909
commit
07085b431e
1 changed files with 1 additions and 1 deletions
|
@ -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: '/' });
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue