1
1
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:
Rasmus Andersson 2019-05-26 18:18:12 -07:00
parent 1f05e6237f
commit a4d3c0c235

View File

@ -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'
}
}
}