mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 12:33:45 +03:00
14 lines
298 B
JavaScript
14 lines
298 B
JavaScript
const { app, BrowserWindow } = require('electron');
|
|
|
|
app.whenReady().then(() => {
|
|
const win = new BrowserWindow({
|
|
width: 800,
|
|
height: 600,
|
|
});
|
|
setTimeout(() => {
|
|
win.loadURL('data:text/html,<h1>Foobar</h1>');
|
|
}, 2_000);
|
|
})
|
|
|
|
app.on('window-all-closed', e => e.preventDefault());
|