mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 21:54:09 +00:00
fix: stop IPC errors when testing locally
This commit is contained in:
@@ -44,6 +44,9 @@ export default function MenuBar(props) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleIPC = (action) => {
|
const handleIPC = (action) => {
|
||||||
|
// Stop crashes when testing locally
|
||||||
|
if (window.process?.type === undefined) return;
|
||||||
|
|
||||||
if (window.process.type === 'renderer') {
|
if (window.process.type === 'renderer') {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case 'min':
|
case 'min':
|
||||||
|
|||||||
Reference in New Issue
Block a user