Merge pull request #10712 from electron/remove-default-deprecation

remove potential deprecation and fix app close
This commit is contained in:
Zeke Sikelianos 2017-10-07 22:03:32 -07:00 committed by GitHub
commit c85b159d46

View file

@ -336,8 +336,6 @@ if (option.file && !option.webdriver) {
startRepl()
} else {
const welcomeMessage = `
Deprecation Warning: To render the default app, the -d or --default flags will soon need to be used.
Electron ${process.versions.electron} - Build cross platform desktop apps with JavaScript, HTML, and CSS
Usage: electron [options] [path]
@ -357,5 +355,4 @@ if (option.file && !option.webdriver) {
console.log(welcomeMessage)
const indexPath = path.join(__dirname, '/index.html')
loadApplicationByUrl(`file://${indexPath}`)
process.exit(0)
}