Merge pull request #571 from ekzyis/568-empty-push-notifications

Fix empty push notifications
This commit is contained in:
Keyan 2023-10-20 19:03:15 -05:00 committed by GitHub
commit ebbecdfa60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ self.addEventListener('push', async function (event) {
const { tag } = payload.options const { tag } = payload.options
event.waitUntil((async () => { event.waitUntil((async () => {
// TIP and EARN notifications simply replace the previous notifications // 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) return self.registration.showNotification(payload.title, payload.options)
} }