diff --git a/app/src/components/mainWindow/mainWindow.js b/app/src/components/mainWindow/mainWindow.js index 783cc64..03d89c6 100644 --- a/app/src/components/mainWindow/mainWindow.js +++ b/app/src/components/mainWindow/mainWindow.js @@ -40,7 +40,6 @@ function createMainWindow(options, onAppQuit, setDockBadge) { }, // after webpack path here should reference `resources/app/` icon: options.icon - //icon: path.join(__dirname, '../', '/icon.png') }); let currentZoom = 1; diff --git a/app/src/main.js b/app/src/main.js index 7fb9f5f..96e99e3 100644 --- a/app/src/main.js +++ b/app/src/main.js @@ -69,7 +69,7 @@ app.on('before-quit', () => { let appIcon = null; app.on('ready', () => { mainWindow = createMainWindow(appArgs, app.quit, setDockBadge); - mainWindow.on('close', (e)=> { + mainWindow.on('close', e => { if (!mainWindow.forceClose && appArgs.minimizeToTray) { e.preventDefault(); mainWindow.hide(); @@ -83,7 +83,7 @@ app.on('ready', () => { { label: 'Show', type: 'normal', - click: function (menuItem) { + click: function() { mainWindow.show(); } }, @@ -91,7 +91,7 @@ app.on('ready', () => { label: 'Minimize to Tray', type: 'checkbox', checked: appArgs.minimizeToTray || false, - click: function (menuItem) { + click: function(menuItem) { appArgs.minimizeToTray = menuItem.checked; fs.writeFileSync(APP_ARGS_FILE_PATH, JSON.stringify(appArgs)); } @@ -99,7 +99,7 @@ app.on('ready', () => { { label: 'Close', type: 'normal', - click: function (menuItem) { + click: function() { mainWindow.forceClose = true; app.quit(); }