Merge pull request #1837 from stackernews/fix-possible-silent-push

Fix possible silent push
This commit is contained in:
Keyan 2025-01-21 09:37:10 -06:00 committed by GitHub
commit 382714e422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ export function onPush (sw) {
// iOS requirement: wait for all promises to resolve before showing the notification
event.waitUntil(Promise.all(promises).then(() => {
sw.registration.showNotification(payload.title, payload.options)
return sw.registration.showNotification(payload.title, payload.options)
}))
}
}