[Splash] Wrap sendState in try catch
This commit is contained in:
parent
b860068286
commit
bcfb58fdaa
1 changed files with 5 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue