mirror of
https://github.com/electron/electron.git
synced 2026-01-09 07:28:12 -05:00
test: exit after app.relaunch is called (#28016)
This commit is contained in:
7
spec/fixtures/api/relaunch/main.js
vendored
7
spec/fixtures/api/relaunch/main.js
vendored
@@ -14,10 +14,9 @@ app.whenReady().then(() => {
|
||||
client.end(String(lastArg === '--second'));
|
||||
});
|
||||
client.once('end', () => {
|
||||
if (lastArg !== '--second') {
|
||||
app.relaunch({ args: process.argv.slice(1).concat('--second') });
|
||||
}
|
||||
app.exit(0);
|
||||
});
|
||||
|
||||
if (lastArg !== '--second') {
|
||||
app.relaunch({ args: process.argv.slice(1).concat('--second') });
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user