diff --git a/src/components/site/PostToc.tsx b/src/components/site/PostToc.tsx index 20e32cef..1b625b88 100644 --- a/src/components/site/PostToc.tsx +++ b/src/components/site/PostToc.tsx @@ -39,13 +39,13 @@ function useActiveId(itemIds: string[]) { (entries) => { entries.forEach((entry) => { if (entry.isIntersecting) { - const state = history.state + // const state = history.state - history.replaceState( - { ...state, preventScrollToToc: true }, - "", - entry.target.getAttribute("href"), - ) + // history.replaceState( + // { ...state, preventScrollToToc: true }, + // "", + // entry.target.getAttribute("href"), + // ) setActiveId(entry.target.getAttribute("href")) } })