remove potential deprecation and fix app close
This commit is contained in:
parent
85ef1ee21f
commit
bedb8ca191
1 changed files with 0 additions and 3 deletions
|
@ -336,8 +336,6 @@ if (option.file && !option.webdriver) {
|
||||||
startRepl()
|
startRepl()
|
||||||
} else {
|
} else {
|
||||||
const welcomeMessage = `
|
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
|
Electron ${process.versions.electron} - Build cross platform desktop apps with JavaScript, HTML, and CSS
|
||||||
Usage: electron [options] [path]
|
Usage: electron [options] [path]
|
||||||
|
|
||||||
|
@ -357,5 +355,4 @@ if (option.file && !option.webdriver) {
|
||||||
console.log(welcomeMessage)
|
console.log(welcomeMessage)
|
||||||
const indexPath = path.join(__dirname, '/index.html')
|
const indexPath = path.join(__dirname, '/index.html')
|
||||||
loadApplicationByUrl(`file://${indexPath}`)
|
loadApplicationByUrl(`file://${indexPath}`)
|
||||||
process.exit(0)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue