notification: safe removal

This commit is contained in:
bordun 2020-03-31 09:52:39 +02:00
parent bd34ff0fb0
commit b749274921

View file

@ -46,7 +46,7 @@ class Toast {
this.html.classList.add('remove')
setTimeout(()=>{
el.removeChild(this.html)
if (el.contains(this.html)) el.removeChild(this.html)
}, 200)
}