Skip to content

Commit

Permalink
fix: fix window access
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlosfarah committed Apr 5, 2024
1 parent 3736f05 commit 78b7519
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,9 @@ const theme = createTheme({
},
});

const getParentWindowHeight = (): number =>
window.parent.document.body.scrollHeight;

const RootDiv = styled('div')({
flexGrow: 1,
height: getParentWindowHeight(),
height: '100vh',
});

const Root: FC = () => {
Expand Down

0 comments on commit 78b7519

Please sign in to comment.