mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 01:25:16 +00:00
add 'autoclose' to notifications (i.e. close after 3 seconds)
This commit is contained in:
parent
4a8a4482fc
commit
091e3d41e1
@ -32,6 +32,9 @@
|
||||
|
||||
//using the 'tag' to avoid showing duplicate notifications
|
||||
var notification = new Notification(title, {'tag': title+content, 'body': content});
|
||||
setTimeout(function(){
|
||||
notification.close();
|
||||
},3000);
|
||||
notification.onclick = function () {
|
||||
window.focus();
|
||||
this.cancel();
|
||||
|
Loading…
Reference in New Issue
Block a user