diff --git a/src/arctic/build.gleam b/src/arctic/build.gleam index c59503a..be0be0a 100644 --- a/src/arctic/build.gleam +++ b/src/arctic/build.gleam @@ -276,7 +276,7 @@ async function go_to(url, loader, back) { } const t = document.createTextNode(script.innerHTML); n.appendChild(t); - script.parentNode.replaceChild(script, n); + script.parentNode.replaceChild(n, script); } if (url.hash) window.requestAnimationFrame(() =>