Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit 579531c

Browse files
committed
fix(web): correctly register notification service worker
1 parent dcb5966 commit 579531c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

web/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
if ('serviceWorker' in navigator) {
6161
// Service workers are supported. Use them.
6262
window.addEventListener('load', function () {
63+
navigator.serviceWorker.register('/firebase-messaging-sw.js');
64+
6365
// Wait for registration to finish before dropping the <script> tag.
6466
// Otherwise, the browser will load the script multiple times,
6567
// potentially different versions.

0 commit comments

Comments
 (0)