chore: remove app.makeSingleInstance / releaseSingleInstance (#14518)
This commit is contained in:
parent
f012ed8357
commit
dcd580b6cf
4 changed files with 0 additions and 55 deletions
|
@ -107,21 +107,6 @@ for (let name of events) {
|
|||
})
|
||||
}
|
||||
|
||||
// TODO(MarshallOfSound): Remove in 4.0
|
||||
app.releaseSingleInstance = () => {
|
||||
deprecate.warn('app.releaseSingleInstance(cb)', 'app.releaseSingleInstanceLock()')
|
||||
app.releaseSingleInstanceLock()
|
||||
}
|
||||
|
||||
// TODO(MarshallOfSound): Remove in 4.0
|
||||
app.makeSingleInstance = (oldStyleFn) => {
|
||||
deprecate.warn('app.makeSingleInstance(cb)', 'app.requestSingleInstanceLock() and app.on(\'second-instance\', cb)')
|
||||
if (oldStyleFn && typeof oldStyleFn === 'function') {
|
||||
app.on('second-instance', (event, ...args) => oldStyleFn(...args))
|
||||
}
|
||||
return !app.requestSingleInstanceLock()
|
||||
}
|
||||
|
||||
// Wrappers for native classes.
|
||||
const {DownloadItem} = process.atomBinding('download_item')
|
||||
Object.setPrototypeOf(DownloadItem.prototype, EventEmitter.prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue