2019-09-05 17:56:06 +00:00
|
|
|
const { app, BrowserWindow } = require('electron');
|
|
|
|
|
|
|
|
const ints = (...args) => args.map(a => parseInt(a, 10));
|
|
|
|
|
|
|
|
const [x, y, width, height] = ints(...process.argv.slice(2));
|
|
|
|
|
2023-06-26 09:51:54 +00:00
|
|
|
let w; // eslint-disable-line @typescript-eslint/no-unused-vars
|
2019-09-05 17:56:06 +00:00
|
|
|
|
|
|
|
app.whenReady().then(() => {
|
|
|
|
w = new BrowserWindow({
|
|
|
|
x,
|
|
|
|
y,
|
|
|
|
width,
|
|
|
|
height
|
|
|
|
});
|
|
|
|
console.log('__ready__');
|
|
|
|
});
|
|
|
|
|
|
|
|
process.on('SIGTERM', () => {
|
|
|
|
process.exit(0);
|
|
|
|
});
|