Skip to content

Commit

Permalink
Merge pull request #571 from ekzyis/568-empty-push-notifications
Browse files Browse the repository at this point in the history
Fix empty push notifications
  • Loading branch information
huumn committed Oct 21, 2023
2 parents 2cbc0a9 + e9ffe43 commit ebbecdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/index.js
Expand Up @@ -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)
}

Expand Down

0 comments on commit ebbecdf

Please sign in to comment.