diff --git a/src/components/ViewerPanel.tsx b/src/components/ViewerPanel.tsx
index 730b6b4..423bf27 100644
--- a/src/components/ViewerPanel.tsx
+++ b/src/components/ViewerPanel.tsx
@@ -14,11 +14,12 @@ export default function ViewerPanel({className, style}: {className?: string, sty
return (
{state.output?.stlFileURL &&
diff --git a/src/utils.ts b/src/utils.ts
index 557ea04..97ff6bb 100644
--- a/src/utils.ts
+++ b/src/utils.ts
@@ -91,8 +91,7 @@ export function formatMillis(n: number) {
// https://medium.com/quick-code/100vh-problem-with-ios-safari-92ab23c852a8
export function registerCustomAppHeightCSSProperty() {
const updateAppHeight = () => {
- const doc = document.documentElement
- doc.style.setProperty('--app-height', `${window.innerHeight}px`)
+ document.documentElement.style.setProperty('--app-height', `${window.innerHeight}px`)
}
window.addEventListener('resize', updateAppHeight)
updateAppHeight();