diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-05-27 04:18:12 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-05-27 04:18:12 +0300 |
commit | a4d3c0c2351a81313ff776301ec6c838217cc154 (patch) | |
tree | f5082887c77de46feeca8a6b2e434d52fd1dcddf /docs | |
parent | 1f05e6237ffdbb8262eeeecc21ef4e1e52768aa7 (diff) | |
download | inter-a4d3c0c2351a81313ff776301ec6c838217cc154.tar.xz |
website: minor tweak to hudnotification
Diffstat (limited to 'docs')
-rw-r--r-- | docs/res/base.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/res/base.js b/docs/res/base.js index dc1b28710..7d38721b0 100644 --- a/docs/res/base.js +++ b/docs/res/base.js @@ -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' } } } |