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 return
} }
n.visible = true n.visible = true
n.el.style.visibility = null
clearTimeout(n.timer) clearTimeout(n.timer)
n.timer = setTimeout(function(){ n.hide() }, duration || 1200) n.timer = setTimeout(function(){ n.hide() }, duration || 1200)
}, },
@ -72,6 +73,7 @@ var HUDNotification = {
if (n.visible) { if (n.visible) {
n.el.classList.remove('visible') n.el.classList.remove('visible')
n.visible = false n.visible = false
n.el.style.visibility = 'hidden'
} }
} }
} }