ba6d9291d2
build: add import/order eslint rule (#44085) * build: add import/order eslint rule * chore: run lint:js --fix
23 lines
489 B
JavaScript
23 lines
489 B
JavaScript
const { app, BrowserWindow } = require('electron');
|
|
|
|
const path = require('node:path');
|
|
|
|
app.whenReady().then(() => {
|
|
const win = new BrowserWindow({
|
|
show: false,
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
preload: path.resolve(__dirname, 'preload.js')
|
|
}
|
|
});
|
|
|
|
win.loadURL('about:blank');
|
|
|
|
win.webContents.on('render-process-gone', () => {
|
|
process.exit(1);
|
|
});
|
|
|
|
win.webContents.on('did-finish-load', () => {
|
|
setTimeout(() => app.quit());
|
|
});
|
|
});
|