[Splash] Wrap sendState in try catch

This commit is contained in:
Ducko 2022-02-17 20:47:15 +00:00
parent b860068286
commit bcfb58fdaa

View file

@ -79,7 +79,11 @@ const launchMainWindow = () => {
}
};
const sendState = (status) => splashWindow && splashWindow.webContents.send('SPLASH_STATE', { status, ...splashState });
const sendState = (status) => {
try {
splashWindow.webContents.send('SPLASH_STATE', { status, ...splashState });
} catch (_e) {}
};
const launchSplashWindow = (startMinimized) => {