remove styling on destroy

This commit is contained in:
Philipp Kühn
2020-03-31 13:06:34 +02:00
parent c9bcb49788
commit d869847da1
3 changed files with 18 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
export default function removeElement(element: HTMLElement) {
if (element && element.parentNode) {
element.parentNode.removeChild(element)
}
}