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
1 changed files with 1 additions and 1 deletions

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