fix: second-instance additionalData parameter (#31661)
* test: second-instance additionalData parameter * Fix posix implementation
This commit is contained in:
parent
86f6285299
commit
9e0e04da25
4 changed files with 110 additions and 29 deletions
4
spec/fixtures/api/singleton/main.js
vendored
4
spec/fixtures/api/singleton/main.js
vendored
|
@ -6,9 +6,9 @@ app.whenReady().then(() => {
|
|||
|
||||
const gotTheLock = app.requestSingleInstanceLock();
|
||||
|
||||
app.on('second-instance', (event, args, workingDirectory, data) => {
|
||||
app.on('second-instance', (event, args, workingDirectory) => {
|
||||
setImmediate(() => {
|
||||
console.log([JSON.stringify(args), JSON.stringify(data)].join('||'));
|
||||
console.log(JSON.stringify(args));
|
||||
app.exit(0);
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue