From 312ee5af599bb92c6def4484dd0676ea3f498dd2 Mon Sep 17 00:00:00 2001 From: sawka Date: Fri, 21 Jun 2024 13:27:21 -0700 Subject: [PATCH] remove visualViewport hack (needed for Safari) --- frontend/wave.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/wave.ts b/frontend/wave.ts index 032c11c61..35b0999c2 100644 --- a/frontend/wave.ts +++ b/frontend/wave.ts @@ -25,15 +25,8 @@ initWS(); (window as any).WOS = WOS; (window as any).globalStore = globalStore; -function matchViewportSize() { - document.body.style.width = window.visualViewport.width + "px"; - document.body.style.height = window.visualViewport.height + "px"; -} - document.title = `The Next Wave (${windowId.substring(0, 8)})`; -matchViewportSize(); - document.addEventListener("DOMContentLoaded", async () => { console.log("DOMContentLoaded"); // ensures client/window/workspace are loaded into the cache before rendering @@ -49,6 +42,4 @@ document.addEventListener("DOMContentLoaded", async () => { console.log("Wave First Render"); root.render(reactElem); }); - const viewport = window.visualViewport; - viewport.addEventListener("resize", matchViewportSize); });