build: enable JS semicolons (#22783)
This commit is contained in:
parent
24e21467b9
commit
5d657dece4
354 changed files with 21512 additions and 21510 deletions
26
spec/fixtures/api/relaunch/main.js
vendored
26
spec/fixtures/api/relaunch/main.js
vendored
|
@ -1,23 +1,23 @@
|
|||
const { app } = require('electron')
|
||||
const net = require('net')
|
||||
const { app } = require('electron');
|
||||
const net = require('net');
|
||||
|
||||
const socketPath = process.platform === 'win32' ? '\\\\.\\pipe\\electron-app-relaunch' : '/tmp/electron-app-relaunch'
|
||||
const socketPath = process.platform === 'win32' ? '\\\\.\\pipe\\electron-app-relaunch' : '/tmp/electron-app-relaunch';
|
||||
|
||||
process.on('uncaughtException', () => {
|
||||
app.exit(1)
|
||||
})
|
||||
app.exit(1);
|
||||
});
|
||||
|
||||
app.whenReady().then(() => {
|
||||
const lastArg = process.argv[process.argv.length - 1]
|
||||
const client = net.connect(socketPath)
|
||||
const lastArg = process.argv[process.argv.length - 1];
|
||||
const client = net.connect(socketPath);
|
||||
client.once('connect', () => {
|
||||
client.end(String(lastArg === '--second'))
|
||||
})
|
||||
client.end(String(lastArg === '--second'));
|
||||
});
|
||||
client.once('end', () => {
|
||||
app.exit(0)
|
||||
})
|
||||
app.exit(0);
|
||||
});
|
||||
|
||||
if (lastArg !== '--second') {
|
||||
app.relaunch({ args: process.argv.slice(1).concat('--second') })
|
||||
app.relaunch({ args: process.argv.slice(1).concat('--second') });
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue