mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Supress errors from main process
This commit is contained in:
+5
-1
@@ -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 New Issue
Block a user