2
2
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:
Jia Hao 2016-01-29 00:20:32 +08:00
parent c852dc088f
commit 0d408b001d
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -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;
}