fix: trim app name and productName (#15286)

Fixes #15245
This commit is contained in:
trop[bot] 2018-10-19 09:13:10 -07:00 committed by Shelley Vohr
parent f119e4cc4b
commit ead294fe13

View file

@ -128,9 +128,9 @@ if (packageJson.version != null) {
// Set application's name.
if (packageJson.productName != null) {
app.setName(packageJson.productName)
app.setName(`${packageJson.productName}`.trim())
} else if (packageJson.name != null) {
app.setName(packageJson.name)
app.setName(`${packageJson.name}`.trim())
}
// Set application's desktop name.