Use window.innerHeight instead

This commit is contained in:
Dustin Brett
2023-04-06 21:30:22 -07:00
parent 4ba15af46f
commit 72609459c6
2 changed files with 3 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class Document extends NextDocument {
<Head />
<body>
<Script id="initialHeight" strategy="beforeInteractive">
window.initialHeight = document.documentElement.clientHeight;
window.initialHeight = window.innerHeight;
</Script>
<Main />
<NextScript />