Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
[ci-skip]
  • Loading branch information
pascalbaljet committed Oct 6, 2024
1 parent 7763dad commit 350b5ba
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ export default {
// Restore tab from local storage
const tab = localStorage.getItem('codeGroupTab')
if (tab) {
const currentScrollY = window.scrollY

nextTick(() => {
preventScroll = true
showCodeWithLabel(tab)
preventScroll = false
window.scrollTo({ top: currentScrollY, behavior: 'instant' })
bindClickEvent()
})
}
Expand Down

0 comments on commit 350b5ba

Please sign in to comment.