Merge pull request #571 from ekzyis/568-empty-push-notifications
Fix empty push notifications
This commit is contained in:
commit
ebbecdfa60
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user