2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-09-22 17:49:02 +00:00

Merge branch 'development' of github.com:jiahaog/nativefier into development

This commit is contained in:
Jia Hao 2016-01-30 02:09:22 +08:00
commit de4fc27859

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