Im trying to setup a redirect so users are redirected when they click "allow" on push notification
I know some softwares like pushpro have these features built in but i'm just looking for the general javascript code
Notification.requestPermission().then(function(result) {
if (result === 'granted') {
// redirect here
}
});