mirror of
https://github.com/hanzoai/playwright.git
synced 2026-09-24 17:01:53 +00:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
const { app, BrowserWindow } = require('electron');
|
|
|
|
app.whenReady().then(() => {
|
|
const win = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
webPreferences: { sandbox: true },
|
|
});
|
|
win.loadURL('about:blank');
|
|
})
|
|
|
|
app.on('window-all-closed', e => e.preventDefault());
|