mirror of
https://github.com/electron/electron.git
synced 2026-01-09 15:38:08 -05:00
Fix second-instance handler signature (#14731)
This commit is contained in:
committed by
Shelley Vohr
parent
d927501139
commit
a24307b8e8
@@ -806,7 +806,7 @@ const gotTheLock = app.requestSingleInstanceLock()
|
||||
if (!gotTheLock) {
|
||||
app.quit()
|
||||
} else {
|
||||
app.on('second-instance', (commandLine, workingDirectory) => {
|
||||
app.on('second-instance', (event, commandLine, workingDirectory) => {
|
||||
// Someone tried to run a second instance, we should focus our window.
|
||||
if (myWindow) {
|
||||
if (myWindow.isMinimized()) myWindow.restore()
|
||||
|
||||
Reference in New Issue
Block a user