diff --git a/default_app/main.js b/default_app/main.js index 32461525aa4e..8fc9792fec49 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -242,8 +242,10 @@ function loadApplicationPackage (packagePath) { showErrorMessage(`Unable to parse ${packageJsonPath}\n\n${e.message}`) return } - if (packageJson.version) app.setVersion(packageJson.version) + if (packageJson.version) { + app.setVersion(packageJson.version) + } if (packageJson.productName) { app.setName(packageJson.productName) } else if (packageJson.name) {