mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-24 07:38:36 +00:00
Merge pull request #107 from zweicoder/fix/respect-user-choice
Respect user choice for naming
This commit is contained in:
commit
b229fe9d9a
@ -82,6 +82,10 @@ function optionsFactory(inpOptions, callback) {
|
|||||||
} else {
|
} else {
|
||||||
options.name = pageTitle;
|
options.name = pageTitle;
|
||||||
}
|
}
|
||||||
|
if (options.platform === 'linux') {
|
||||||
|
// spaces will cause problems with Ubuntu when pinned to the dock
|
||||||
|
options.name = _.kebabCase(options.name);
|
||||||
|
}
|
||||||
callback();
|
callback();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -93,10 +97,6 @@ function optionsFactory(inpOptions, callback) {
|
|||||||
function sanitizeOptions(options) {
|
function sanitizeOptions(options) {
|
||||||
options.name = sanitizeFilename(options.name);
|
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;
|
return options;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user