fix: stop IPC errors when testing locally

This commit is contained in:
cv
2021-10-02 16:48:15 +02:00
parent 8335af4ed0
commit 6ca2eb77a1
+3
View File
@@ -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':