diff --git a/email_app/app/index.js b/email_app/app/index.js index 7378206..591a0af 100755 --- a/email_app/app/index.js +++ b/email_app/app/index.js @@ -11,8 +11,10 @@ const sendResponse = (res) => { const createWindow = () => { // Create the browser window. mainWindow = new BrowserWindow({ - width: 800, - height: 600, + show: false, + resizable: false, + width: 1024, + height: 728 }); // and load the index.html of the app. @@ -29,6 +31,11 @@ const createWindow = () => { mainWindow = null; }); + mainWindow.webContents.on('did-finish-load', () => { + mainWindow.show(); + mainWindow.focus(); + }); + const shouldQuit = app.makeSingleInstance(function(commandLine) { if (commandLine.length >= 2 && commandLine[1]) { sendResponse(commandLine[1]);