Skip to content

Commit

Permalink
Fix possible silent push
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzyis committed Jan 21, 2025
1 parent 355abc7 commit 1942c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/eventListener.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}))
}
}
Expand Down

0 comments on commit 1942c79

Please sign in to comment.