Skip to content

Commit

Permalink
feat: handleIframe in effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Cahllagerfeld committed May 8, 2024
1 parent a4a6477 commit 3b45581
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/artifacts/HtmlVisualization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export function HTMLVisualization({ content }: Props) {
};

useEffect(() => {
handleIframeLoad();
window.addEventListener("resize", handleIframeLoad);
return () => {
window.removeEventListener("resize", handleIframeLoad);
Expand Down

0 comments on commit 3b45581

Please sign in to comment.