Respect user choice for naming

This commit is contained in:
zweicoder 2016-01-30 01:42:36 +08:00
parent 43d50cdaba
commit 3d4faf6c77
1 changed files with 4 additions and 4 deletions

View File

@ -82,6 +82,10 @@ function optionsFactory(inpOptions, callback) {
} else {
options.name = pageTitle;
}
if (options.platform === 'linux') {
// spaces will cause problems with Ubuntu when pinned to the dock
options.name = _.kebabCase(options.name);
}
callback();
});
}
@ -93,10 +97,6 @@ function optionsFactory(inpOptions, callback) {
function sanitizeOptions(options) {
options.name = sanitizeFilename(options.name);
if (options.platform === 'linux') {
// spaces will cause problems with Ubuntu when pinned to the dock
options.name = _.kebabCase(options.name);
}
return options;
}