Use new styles of browserWindow options

This commit is contained in:
Cheng Zhao 2015-11-11 10:33:59 +08:00
parent ba457681b2
commit 60ec1ca3f7
2 changed files with 12 additions and 12 deletions

View file

@ -12,8 +12,8 @@ app.on('ready', function() {
mainWindow = new BrowserWindow({
width: 800,
height: 600,
'auto-hide-menu-bar': true,
'use-content-size': true,
autoHideMenuBar: true,
useContentSize: true,
});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
mainWindow.focus();