From e9ffe4340575c463053c41682dddbf8abb076004 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 18 Oct 2023 01:51:32 +0200 Subject: [PATCH] Fix empty push notifications --- sw/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sw/index.js b/sw/index.js index 1e7a96b3..4616365c 100644 --- a/sw/index.js +++ b/sw/index.js @@ -77,7 +77,7 @@ self.addEventListener('push', async function (event) { const { tag } = payload.options event.waitUntil((async () => { // TIP and EARN notifications simply replace the previous notifications - if (!tag || ['TIP', 'EARN'].includes(tag.split('-')[0])) { + if (!tag || ['TIP', 'FORWARDEDTIP', 'EARN'].includes(tag.split('-')[0])) { return self.registration.showNotification(payload.title, payload.options) }