Fix possible silent push
This commit is contained in:
parent
355abc7221
commit
1942c79193
@ -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)
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user