We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cef51e6 commit 0ccee99Copy full SHA for 0ccee99
1 file changed
src/components/service-worker-register.tsx
@@ -10,13 +10,13 @@ export function ServiceWorkerRegister() {
10
const registerServiceWorker = () => {
11
navigator.serviceWorker.register("/sw.js").then(
12
(registration) => {
13
- console.log(
14
- "Service Worker registration successful with scope: ",
+ console.warn(
+ "Service Worker registration successful with scope:",
15
registration.scope,
16
);
17
},
18
- (err) => {
19
- console.error("Service Worker registration failed: ", err);
+ (error: unknown) => {
+ console.error("Service Worker registration failed:", error);
20
21
22
};
0 commit comments