Update browserWindow options to follow new electron api

- Use camel casing instead
This commit is contained in:
Goh Jia Hao 2016-05-26 16:52:26 +08:00
parent 2d2f107c84
commit fcab2a9a95
1 changed files with 2 additions and 2 deletions

View File

@ -30,10 +30,10 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
height: mainWindowState.height,
x: mainWindowState.x,
y: mainWindowState.y,
'auto-hide-menu-bar': !options.showMenuBar,
autoHideMenuBar: !options.showMenuBar,
// Convert dashes to spaces because on linux the app name is joined with dashes
title: options.name,
'web-preferences': {
webPreferences: {
javascript: true,
plugins: true,
// node globals causes problems with sites like messenger.com