From fcab2a9a95399cc3ad1dc3d95a05c79d90e6c08d Mon Sep 17 00:00:00 2001 From: Goh Jia Hao Date: Thu, 26 May 2016 16:52:26 +0800 Subject: [PATCH] Update browserWindow options to follow new electron api - Use camel casing instead --- app/src/components/mainWindow/mainWindow.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/mainWindow/mainWindow.js b/app/src/components/mainWindow/mainWindow.js index 0992c0e..f5e0c60 100644 --- a/app/src/components/mainWindow/mainWindow.js +++ b/app/src/components/mainWindow/mainWindow.js @@ -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