electron/spec/fixtures/apps/xwindow-icon/main.js
Milan Burda d78f37ec8f
refactor: use node scheme imports in spec (#38487)
Co-authored-by: Milan Burda <miburda@microsoft.com>
2023-06-15 10:42:27 -04:00

13 lines
315 B
JavaScript

const { app, BrowserWindow } = require('electron');
const path = require('node:path');
app.whenReady().then(() => {
const w = new BrowserWindow({
show: false,
icon: path.join(__dirname, 'icon.png')
});
w.webContents.on('did-finish-load', () => {
app.quit();
});
w.loadURL('about:blank');
});