docs: add missing ackCallback parameter (#34126)
This commit is contained in:
parent
1bdbb69351
commit
3ba60de51d
1 changed files with 1 additions and 1 deletions
|
@ -1001,7 +1001,7 @@ const gotTheLock = app.requestSingleInstanceLock(additionalData)
|
||||||
if (!gotTheLock) {
|
if (!gotTheLock) {
|
||||||
app.quit()
|
app.quit()
|
||||||
} else {
|
} else {
|
||||||
app.on('second-instance', (event, commandLine, workingDirectory, additionalData) => {
|
app.on('second-instance', (event, commandLine, workingDirectory, additionalData, ackCallback) => {
|
||||||
// We must call preventDefault if we're sending back data.
|
// We must call preventDefault if we're sending back data.
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
// Print out data received from the second instance.
|
// Print out data received from the second instance.
|
||||||
|
|
Loading…
Reference in a new issue