From 4bd29cadb83fa6e33ed71fc1c0cd0f4705104525 Mon Sep 17 00:00:00 2001 From: Oj Date: Sun, 13 Feb 2022 19:15:32 +0000 Subject: [PATCH] [Splash > Backend] Clean up a bit --- src/splash/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/splash/index.js b/src/splash/index.js index fe6fe9d..374831c 100644 --- a/src/splash/index.js +++ b/src/splash/index.js @@ -78,7 +78,7 @@ const updateSplashState = (status) => splashWindow && splashWindow.webContents.s const launchSplashWindow = (startMinimized) => { - const windowConfig = { + splashWindow = new BrowserWindow({ width: 300, height: process.platform === 'darwin' ? 300 : 350, transparent: false, @@ -90,9 +90,8 @@ const launchSplashWindow = (startMinimized) => { webPreferences: { preload: join(__dirname, 'preload.js') } - }; + }); - splashWindow = new BrowserWindow(windowConfig); const win = splashWindow; const wc = win.webContents;