notification: safe removal
This commit is contained in:
parent
bd34ff0fb0
commit
b749274921
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue