From 6ca2eb77a10d54b2c8aefc20fc61c043554122b9 Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Sat, 2 Oct 2021 16:48:15 +0200 Subject: [PATCH] fix: stop IPC errors when testing locally --- client/src/features/menu/MenuBar.jsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/features/menu/MenuBar.jsx b/client/src/features/menu/MenuBar.jsx index 2ed4e2c2d..1d6bf0737 100644 --- a/client/src/features/menu/MenuBar.jsx +++ b/client/src/features/menu/MenuBar.jsx @@ -44,6 +44,9 @@ export default function MenuBar(props) { }; const handleIPC = (action) => { + // Stop crashes when testing locally + if (window.process?.type === undefined) return; + if (window.process.type === 'renderer') { switch (action) { case 'min':