diff --git a/apps/web/components/Embed.tsx b/apps/web/components/Embed.tsx index 462a8cb7da..c8e127b296 100644 --- a/apps/web/components/Embed.tsx +++ b/apps/web/components/Embed.tsx @@ -669,8 +669,11 @@ const EmbedTypeCodeAndPreviewDialogContent = ({ embedUrl: string; }) => { const { t } = useLocale(); + const router = useRouter(); const iframeRef = useRef(null); + const dialogContentRef = useRef(null); + const s = (href: string) => { const searchParams = new URLSearchParams(router.asPath.split("?")[1] || ""); const [a, b] = href.split("="); @@ -809,7 +812,7 @@ const EmbedTypeCodeAndPreviewDialogContent = ({ ]; return ( - +