mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 14:37:06 +01:00
Supress errors from main process
This commit is contained in:
parent
b8614495f6
commit
598b627bb4
@ -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')) {
|
||||
app.commandLine.appendSwitch('ignore-certificate-errors');
|
||||
}
|
||||
@ -393,7 +397,7 @@ ipcMain.on('player-set-properties', async (_event, data: Record<string, any>) =>
|
||||
ipcMain.on(
|
||||
'player-restart',
|
||||
async (_event, data: { extraParameters?: string[]; properties?: Record<string, any> }) => {
|
||||
getMpvInstance()?.quit();
|
||||
mpvInstance?.quit();
|
||||
createMpv(data);
|
||||
},
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user