mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Hides notification after X amount of seconds
This commit is contained in:
@@ -2,6 +2,11 @@
|
||||
notificationGranted = (message, opts, onclick) ->
|
||||
notification = new Notification(message, opts)
|
||||
|
||||
# Hide the notification after X amount of seconds
|
||||
setTimeout ->
|
||||
notification.close()
|
||||
, 8000
|
||||
|
||||
if onclick
|
||||
notification.onclick = onclick
|
||||
|
||||
|
||||
Reference in New Issue
Block a user