docs: add missing ackCallback parameter (#34126)

This commit is contained in:
Raymond Zhao 2022-05-06 13:24:14 -07:00 committed by GitHub
parent 1bdbb69351
commit 3ba60de51d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.