diff --git a/packages/web/components/templates/article/Article.tsx b/packages/web/components/templates/article/Article.tsx index 44e351e34..2726f1fd5 100644 --- a/packages/web/components/templates/article/Article.tsx +++ b/packages/web/components/templates/article/Article.tsx @@ -45,7 +45,6 @@ export function Article(props: ArticleProps): JSX.Element { if (!articleContentRef.current) return if (!window.document.scrollingElement) return const anchor = getTopOmnivoreAnchorElement(articleContentRef.current) - console.log(' -- getTopOmnivoreAnchorElement: ', anchor) const topPositionPercent = window.scrollY / window.document.scrollingElement.scrollHeight const anchorIndex = Number(anchor) @@ -106,7 +105,6 @@ export function Article(props: ArticleProps): JSX.Element { return } - console.log('props.initialAnchorIndex: ', props.initialAnchorIndex) const anchorElement = props.highlightHref.current ? document.querySelector( `[omnivore-highlight-id="${props.highlightHref.current}"]` diff --git a/packages/web/lib/hooks/useReadingProgressAnchor.tsx b/packages/web/lib/hooks/useReadingProgressAnchor.tsx index d3f372db7..245c8b2b9 100644 --- a/packages/web/lib/hooks/useReadingProgressAnchor.tsx +++ b/packages/web/lib/hooks/useReadingProgressAnchor.tsx @@ -29,11 +29,6 @@ export const getTopOmnivoreAnchorElement = ( } } - console.log( - ' top visible rect:', - topVisibleRect?.getBoundingClientRect().top, - topVisibleRect?.getAttribute(`data-omnivore-anchor-idx`) - ) return topVisibleRect?.getAttribute(`data-omnivore-anchor-idx`) ?? undefined }