diff --git a/src/app/share/[...shareId]/page.tsx b/src/app/share/[...shareId]/page.tsx index 59e519349..e8ca8e607 100644 --- a/src/app/share/[...shareId]/page.tsx +++ b/src/app/share/[...shareId]/page.tsx @@ -1,26 +1,5 @@ -import { useEffect } from 'react'; import SharePage from './SharePage'; export default function ({ params: { shareId } }) { - useEffect(() => { - function sendHeightToParent() { - const height = document.body.scrollHeight; - window.parent.postMessage({ height: height }, '*'); - } - - sendHeightToParent(); - - // Add event listener for resize - window.addEventListener('resize', () => { - sendHeightToParent(); - }); - - // Cleanup function to remove event listener - return () => { - window.removeEventListener('resize', () => { - sendHeightToParent(); - }); - }; - }, []) return ; }