
"+message,type,'top-right');return}Notification.requestPermission(function(result){if(result==='granted'){console.log('Notification: '+result);try{var notification=new Notification(title,{body:message,icon:icon?icon:'https://cdn1.iconfinder.com/data/icons/hawcons/32/698558-icon-47-note-important-512.png',image:image?image:''});if(url){notification.onclick=function(e){e.preventDefault();window.open(url,'_blank')}}}catch(err){WPDM.notify(""+title+"
"+message,type,'top-right');console.log('Notification API error: '+err)}}else{WPDM.notify(""+title+"
"+message,type,'top-right');console.log('Notification: '+result)}})},notify:function(message,type,position,autoclose){var $=jQuery;if(type===undefined||!type)type='info';if(position===undefined||!position)position='top-right';if(type==='danger')type='error';var notifycont=position.indexOf('#')>=0?position:'#wpdm-notify-'+position;if($(notifycont).length==0)$('body').prepend("