Use new styles of browserWindow options
This commit is contained in:
parent
ba457681b2
commit
60ec1ca3f7
2 changed files with 12 additions and 12 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue