[Splash > Backend] Clean up a bit
This commit is contained in:
parent
600bc953be
commit
4bd29cadb8
1 changed files with 2 additions and 3 deletions
|
@ -78,7 +78,7 @@ const updateSplashState = (status) => splashWindow && splashWindow.webContents.s
|
||||||
|
|
||||||
|
|
||||||
const launchSplashWindow = (startMinimized) => {
|
const launchSplashWindow = (startMinimized) => {
|
||||||
const windowConfig = {
|
splashWindow = new BrowserWindow({
|
||||||
width: 300,
|
width: 300,
|
||||||
height: process.platform === 'darwin' ? 300 : 350,
|
height: process.platform === 'darwin' ? 300 : 350,
|
||||||
transparent: false,
|
transparent: false,
|
||||||
|
@ -90,9 +90,8 @@ const launchSplashWindow = (startMinimized) => {
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: join(__dirname, 'preload.js')
|
preload: join(__dirname, 'preload.js')
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
|
|
||||||
splashWindow = new BrowserWindow(windowConfig);
|
|
||||||
const win = splashWindow;
|
const win = splashWindow;
|
||||||
const wc = win.webContents;
|
const wc = win.webContents;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue