Skip to content

Commit

Permalink
fix foregroundWillDisplay event in example
Browse files Browse the repository at this point in the history
  • Loading branch information
jkasten2 committed Nov 14, 2023
1 parent 9f14f3a commit 69299ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions express_webpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@
});

OneSignalDeferred.push(function(onesignal) {
onesignal.Notifications.addEventListener('willDisplay', function (event) {
showEventAlert('willDisplay', { event });
onesignal.Notifications.addEventListener('foregroundWillDisplay', function (event) {
showEventAlert('foregroundWillDisplay', event);
});
});

Expand Down

0 comments on commit 69299ec

Please sign in to comment.