mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 00:38:28 +00:00
remove visualViewport hack (needed for Safari)
This commit is contained in:
parent
516f1faa47
commit
312ee5af59
1 changed files with 0 additions and 9 deletions
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue