2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-11 07:41:04 +00:00

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

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