diff --git a/src/splash/index.js b/src/splash/index.js index 8a1c5cc..e3f39b1 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -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) => {