diff --git a/web/dist/spruce.ts b/web/dist/spruce.ts index 211ccce..15725e9 100644 --- a/web/dist/spruce.ts +++ b/web/dist/spruce.ts @@ -22,7 +22,7 @@ export function runapp( ) { function replace(parent: Node, node: Node | undefined, child: Node) { if (node) { - parent.insertBefore(node, child); + parent.insertBefore(child, node); parent.removeChild(node); } else { parent.appendChild(child);