icon cleanup

This commit is contained in:
Jan Prochazka
2021-01-07 08:15:26 +01:00
parent 6ac2122c76
commit 287d29bbdb
4 changed files with 3 additions and 2 deletions

View File

@@ -114,12 +114,13 @@ function buildMenu() {
function createWindow() {
const bounds = store.get('winBounds');
mainWindow = new BrowserWindow({
width: 1200,
height: 800,
title: 'DbGate',
icon: os.platform() == 'win32' ? 'icon.ico' : 'icon.png',
...bounds,
icon: os.platform() == 'win32' ? 'icon.ico' : path.resolve(__dirname, '../icon.png'),
show: false,
webPreferences: {
nodeIntegration: true,