chore: remove app.makeSingleInstance / releaseSingleInstance (#14518)
This commit is contained in:
parent
f012ed8357
commit
dcd580b6cf
4 changed files with 0 additions and 55 deletions
13
spec/fixtures/api/singleton-old/main.js
vendored
13
spec/fixtures/api/singleton-old/main.js
vendored
|
@ -1,13 +0,0 @@
|
|||
const {app} = require('electron')
|
||||
|
||||
app.once('ready', () => {
|
||||
console.log('started') // ping parent
|
||||
})
|
||||
|
||||
const shouldExit = app.makeSingleInstance(() => {
|
||||
setImmediate(() => app.exit(0))
|
||||
})
|
||||
|
||||
if (shouldExit) {
|
||||
app.exit(1)
|
||||
}
|
5
spec/fixtures/api/singleton-old/package.json
vendored
5
spec/fixtures/api/singleton-old/package.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"name": "electron-app-singleton",
|
||||
"main": "main.js"
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue