From 579531c30a17e2c8d53d011dbecf710f42598ec8 Mon Sep 17 00:00:00 2001 From: Jagandeep Brar Date: Thu, 8 Sep 2022 00:51:05 -0400 Subject: [PATCH] fix(web): correctly register notification service worker --- web/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/index.html b/web/index.html index 7e0c9136..2d25b2f1 100644 --- a/web/index.html +++ b/web/index.html @@ -60,6 +60,8 @@ if ('serviceWorker' in navigator) { // Service workers are supported. Use them. window.addEventListener('load', function () { + navigator.serviceWorker.register('/firebase-messaging-sw.js'); + // Wait for registration to finish before dropping the