Fix empty push notifications

This commit is contained in:
ekzyis 2023-10-18 01:51:32 +02:00
parent e12e2481f4
commit e9ffe43405
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}