Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/js/pageTransitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function loadPage(url, shouldPushState = false, scrollPosition = 0)
// Wait for transition to finish if we're too early
var completeUpdate = () => {
// Only replace body and update title (don't re-run scripts or CSS)
document.body.replaceWith(newDoc.body);
document.body.innerHTML = newDoc.body.innerHTML;
hookLinks();
window.scroll(0, scrollPosition);

Expand Down