How to focus the tab that generate the desktop notification, without window.alert()?
PNotify.desktop.permission();
(new PNotify({
title: 'Desktop Success',
text: 'If you\'ve given me permission, I\'ll appear as a desktop notification. If you haven\'t, I\'ll still appear as a regular PNotify notice.',
type: 'success',
desktop: {
desktop: true
}
})).get().click(function(e) {
if ($('.ui-pnotify-closer, .ui-pnotify-sticker, .ui-pnotify-closer *, .ui-pnotify-sticker *').is(e.target)) return;
**alert('Hey! You clicked the desktop notification!');**
});
How to focus the tab that generate the desktop notification, without window.alert()?
These methods do not work