2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-06-17 11:22:20 +00:00

Trim whitespace from inferred page title

This commit is contained in:
Jia Hao 2016-03-09 00:04:54 +08:00
parent 9d1276353e
commit 34039baefd

View File

@ -84,7 +84,7 @@ function optionsFactory(inpOptions, callback) {
console.warn(`Unable to automatically determine app name, falling back to '${DEFAULT_APP_NAME}'`);
options.name = DEFAULT_APP_NAME;
} else {
options.name = pageTitle;
options.name = pageTitle.trim();
}
if (options.platform === 'linux') {
// spaces will cause problems with Ubuntu when pinned to the dock