Skip to content

Commit

Permalink
gosh darn js replaceChild
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanBrewer317 committed Oct 27, 2024
1 parent 0a0a45f commit 8816086
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/arctic/build.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -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(() =>
Expand Down

0 comments on commit 8816086

Please sign in to comment.