Fix possible silent push

This commit is contained in:
ekzyis 2025-01-21 10:23:25 +01:00
parent 355abc7221
commit 1942c79193

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