mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Improve service worker type safety
This commit is contained in:
@@ -28,7 +28,7 @@ class PushNotificationManager {
|
||||
}
|
||||
|
||||
try {
|
||||
this.registration = await navigator.serviceWorker.register("/sw.js");
|
||||
this.registration = await navigator.serviceWorker.register("/assets/serviceWorker.js");
|
||||
console.log("Service Worker registered successfully");
|
||||
return true;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user