mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-09-22 01:29:02 +00:00
Update browserWindow options to follow new electron api
- Use camel casing instead
This commit is contained in:
parent
2d2f107c84
commit
fcab2a9a95
@ -30,10 +30,10 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
|||||||
height: mainWindowState.height,
|
height: mainWindowState.height,
|
||||||
x: mainWindowState.x,
|
x: mainWindowState.x,
|
||||||
y: mainWindowState.y,
|
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
|
// Convert dashes to spaces because on linux the app name is joined with dashes
|
||||||
title: options.name,
|
title: options.name,
|
||||||
'web-preferences': {
|
webPreferences: {
|
||||||
javascript: true,
|
javascript: true,
|
||||||
plugins: true,
|
plugins: true,
|
||||||
// node globals causes problems with sites like messenger.com
|
// node globals causes problems with sites like messenger.com
|
||||||
|
Loading…
Reference in New Issue
Block a user