mirror of
https://github.com/rsms/inter.git
synced 2024-11-23 03:26:15 +03:00
website: minor tweak to hudnotification
This commit is contained in:
parent
1f05e6237f
commit
a4d3c0c235
@ -63,6 +63,7 @@ var HUDNotification = {
|
||||
return
|
||||
}
|
||||
n.visible = true
|
||||
n.el.style.visibility = null
|
||||
clearTimeout(n.timer)
|
||||
n.timer = setTimeout(function(){ n.hide() }, duration || 1200)
|
||||
},
|
||||
@ -72,6 +73,7 @@ var HUDNotification = {
|
||||
if (n.visible) {
|
||||
n.el.classList.remove('visible')
|
||||
n.visible = false
|
||||
n.el.style.visibility = 'hidden'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user