Skip to content

Commit

Permalink
fix: improve window size management
Browse files Browse the repository at this point in the history
  • Loading branch information
stepan662 committed Jun 7, 2024
1 parent 8801e91 commit 862e83c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/ui/state/GlobalState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export const [GlobalState, useGlobalActions, useGlobalState] = createProvider(
const [sizeStack, setSizeStack] = useState<WindowSize[]>([]);

useEffect(() => {
console.log(sizeStack);
const size = sizeStack[sizeStack.length - 1] ?? DEFAULT_SIZE;
emit<ResizeHandler>("RESIZE", size);
return () => emit<ResizeHandler>("RESIZE", DEFAULT_SIZE);
Expand Down
5 changes: 0 additions & 5 deletions src/web/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };

Expand Down

0 comments on commit 862e83c

Please sign in to comment.