mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-11-11 07:41:04 +00:00
Fix #103 App name should not be capitalized
This commit is contained in:
parent
c852dc088f
commit
0d408b001d
@ -32,7 +32,8 @@ function createMainWindow(options, onAppQuit, setDockBadge) {
|
|||||||
x: mainWindowState.x,
|
x: mainWindowState.x,
|
||||||
y: mainWindowState.y,
|
y: mainWindowState.y,
|
||||||
'auto-hide-menu-bar': !options.showMenuBar,
|
'auto-hide-menu-bar': !options.showMenuBar,
|
||||||
title: options.name,
|
// Convert dashes to spaces because on linux the app name is joined with dashes
|
||||||
|
title: options.name.replace(/-/g, ' '),
|
||||||
'web-preferences': {
|
'web-preferences': {
|
||||||
javascript: true,
|
javascript: true,
|
||||||
plugins: true,
|
plugins: true,
|
||||||
|
@ -113,7 +113,7 @@ function sanitizeOptions(options) {
|
|||||||
options.name = sanitize(options.name);
|
options.name = sanitize(options.name);
|
||||||
|
|
||||||
if (options.platform === 'linux') {
|
if (options.platform === 'linux') {
|
||||||
options.name = _.upperFirst(_.camelCase(options.name));
|
options.name = _.kebabCase(options.name);
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user