tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
log service worker registration
awarm.space
2 years ago
dfad5209
30cc87aa
+1
-1
1 changed file
expand all
collapse all
unified
split
components
ServiceWorker.tsx
+1
-1
components/ServiceWorker.tsx
···
4
4
export function ServiceWorker() {
5
5
useEffect(() => {
6
6
if ("serviceWorker" in navigator) {
7
7
-
navigator.serviceWorker.register("/worker.js");
7
7
+
navigator.serviceWorker.register("/worker.js").then(console.log);
8
8
}
9
9
}, []);
10
10
return null;