From 42a1cfab0b72c930fa41adc7c0c9c3dfff55b2a2 Mon Sep 17 00:00:00 2001 From: dab246 Date: Mon, 27 Feb 2023 16:28:44 +0700 Subject: [PATCH] TF-1508 Remove `setBackgroundMessageHandler` not used --- web/firebase-messaging-sw.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/web/firebase-messaging-sw.js b/web/firebase-messaging-sw.js index cf5dd038d..83f438981 100644 --- a/web/firebase-messaging-sw.js +++ b/web/firebase-messaging-sw.js @@ -9,11 +9,4 @@ firebase.initializeApp({ storageBucket: "...", messagingSenderId: "...", appId: "...", -}); -const messaging = firebase.messaging(); - -messaging.setBackgroundMessageHandler(function(payload) { - console.log('[firebase-messaging-sw.js] Received background message ', payload); - self.registration.hideNotification(); - return null; }); \ No newline at end of file