Supress errors from main process
This commit is contained in:
parent
b8614495f6
commit
598b627bb4
1 changed files with 5 additions and 1 deletions
|
@ -40,6 +40,10 @@ export default class AppUpdater {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
process.on('uncaughtException', (error: any) => {
|
||||||
|
console.log('Error in main process', error);
|
||||||
|
});
|
||||||
|
|
||||||
if (store.get('ignore_ssl')) {
|
if (store.get('ignore_ssl')) {
|
||||||
app.commandLine.appendSwitch('ignore-certificate-errors');
|
app.commandLine.appendSwitch('ignore-certificate-errors');
|
||||||
}
|
}
|
||||||
|
@ -393,7 +397,7 @@ ipcMain.on('player-set-properties', async (_event, data: Record<string, any>) =>
|
||||||
ipcMain.on(
|
ipcMain.on(
|
||||||
'player-restart',
|
'player-restart',
|
||||||
async (_event, data: { extraParameters?: string[]; properties?: Record<string, any> }) => {
|
async (_event, data: { extraParameters?: string[]; properties?: Record<string, any> }) => {
|
||||||
getMpvInstance()?.quit();
|
mpvInstance?.quit();
|
||||||
createMpv(data);
|
createMpv(data);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Reference in a new issue