Skip to content

Commit

Permalink
replace history on scroll instead of pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
loreanvictor committed Apr 7, 2023
1 parent 4db7058 commit 27ce687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/.assets/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ const highlightSidebarOnScroll = () => {
}

if (!initial && window.location.hash !== '#' + hash) {
history.pushState(null, null, '#' + hash)
history.replaceState(null, null, '#' + hash)
}
}
}
Expand Down

0 comments on commit 27ce687

Please sign in to comment.