chore(svelte): run prettier

This commit is contained in:
moklick
2023-02-28 12:48:52 +01:00
parent 62a6278682
commit dda21e1fd2
64 changed files with 1669 additions and 1646 deletions
+11 -11
View File
@@ -1,15 +1,15 @@
export default function (node: Element, target = 'body') {
const targetEl = document.querySelector(target);
const targetEl = document.querySelector(target);
if (targetEl) {
targetEl.appendChild(node);
}
if (targetEl) {
targetEl.appendChild(node);
}
return {
destroy() {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
}
};
return {
destroy() {
if (node.parentNode) {
node.parentNode.removeChild(node);
}
}
};
}