Skip to content

Commit

Permalink
I swear this isn't tricking the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound committed May 3, 2018
1 parent 0e83284 commit 0869f35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/browser/api/app.js
Expand Up @@ -110,10 +110,10 @@ for (let name of events) {
}

// TODO(MarshallOfSound): Remove in 4.0
app.makeSingleInstance = (cb) => {
app.makeSingleInstance = (oldStyleFn) => {
deprecate.warn('app.makeSingleInstance(cb)', 'app.requestSingleInstanceLock() and app.on(\'second-instance\', cb)')
if (cb && typeof cb === 'function') {
app.on('second-instance', (event, ...args) => cb(...args))
if (oldStyleFn && typeof oldStyleFn === 'function') {
app.on('second-instance', (event, ...args) => oldStyleFn(...args))
}
return !app.requestSingleInstanceLock()
}
Expand Down

0 comments on commit 0869f35

Please sign in to comment.