mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +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,
|
||||
y: mainWindowState.y,
|
||||
'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': {
|
||||
javascript: true,
|
||||
plugins: true,
|
||||
|
@ -113,7 +113,7 @@ function sanitizeOptions(options) {
|
||||
options.name = sanitize(options.name);
|
||||
|
||||
if (options.platform === 'linux') {
|
||||
options.name = _.upperFirst(_.camelCase(options.name));
|
||||
options.name = _.kebabCase(options.name);
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user