Skip to content

Commit

Permalink
Add user change event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
shepherd-l committed Feb 16, 2024
1 parent cf750db commit 65d93dc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions express_webpack/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@
});
});

OneSignalDeferred.push(function(onesignal) {
onesignal.User.addEventListener('change', function (event) {
showEventAlert('change', { event });
});
});

OneSignalDeferred.push(function(onesignal) {
onesignal.Notifications.addEventListener('permissionChange', function (isSubscribed) {
showEventAlert('permissionChange', { isSubscribed });
Expand Down

0 comments on commit 65d93dc

Please sign in to comment.