2017-09-20 02:58:10 +00:00
|
|
|
const {app} = require('electron')
|
|
|
|
|
2017-09-25 02:19:25 +00:00
|
|
|
console.log('started') // ping parent
|
2017-09-20 02:58:10 +00:00
|
|
|
|
|
|
|
const shouldExit = app.makeSingleInstance(() => {
|
|
|
|
process.nextTick(() => app.exit(0))
|
|
|
|
})
|
|
|
|
|
|
|
|
if (shouldExit) {
|
|
|
|
app.exit(1)
|
|
|
|
}
|