From 862e83cb4f4f8704af08879f6c72f5249b46b147 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0t=C4=9Bp=C3=A1n=20Gran=C3=A1t?= Date: Fri, 7 Jun 2024 17:13:53 +0200 Subject: [PATCH] fix: improve window size management --- src/ui/state/GlobalState.ts | 1 - src/web/main.ts | 5 ----- 2 files changed, 6 deletions(-) diff --git a/src/ui/state/GlobalState.ts b/src/ui/state/GlobalState.ts index 1a3e9ba..f633094 100644 --- a/src/ui/state/GlobalState.ts +++ b/src/ui/state/GlobalState.ts @@ -34,7 +34,6 @@ export const [GlobalState, useGlobalActions, useGlobalState] = createProvider( const [sizeStack, setSizeStack] = useState([]); useEffect(() => { - console.log(sizeStack); const size = sizeStack[sizeStack.length - 1] ?? DEFAULT_SIZE; emit("RESIZE", size); return () => emit("RESIZE", DEFAULT_SIZE); diff --git a/src/web/main.ts b/src/web/main.ts index 3e007c3..3ed9475 100644 --- a/src/web/main.ts +++ b/src/web/main.ts @@ -30,11 +30,6 @@ function main() { const state = getUrlConfig(); - window.addEventListener("message", (e) => { - // print incoming messages - console.log(...e.data.pluginMessage); - }); - function updateNodes(changes: NodeInfo[], notify: boolean) { const changed = { allNodesChanged: false, selectionChanged: false };