refacto: errors in apis
This commit is contained in:
@@ -4,8 +4,8 @@ export const registerServiceWorker = async () => {
|
||||
}
|
||||
|
||||
try {
|
||||
const registration = await navigator.serviceWorker.register("/sw.js");
|
||||
console.log("Service Worker registered with scope:", registration.scope);
|
||||
await navigator.serviceWorker.register("/sw.js");
|
||||
// console.log("Service Worker registered with scope:", registration.scope);
|
||||
} catch (error) {
|
||||
console.error("Service Worker registration failed:", error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user