mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 23:43:57 +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) => {
|
||||
// Stop crashes when testing locally
|
||||
if (window.process?.type === undefined) return;
|
||||
|
||||
if (window.process.type === 'renderer') {
|
||||
switch (action) {
|
||||
case 'min':
|
||||
|
||||
Reference in New Issue
Block a user