d78f37ec8f
Co-authored-by: Milan Burda <miburda@microsoft.com>
20 lines
471 B
JavaScript
20 lines
471 B
JavaScript
const { app, BrowserWindow } = require('electron');
|
|
const path = require('node:path');
|
|
|
|
let win;
|
|
app.whenReady().then(function () {
|
|
win = new BrowserWindow({
|
|
webPreferences: {
|
|
contextIsolation: true,
|
|
preload: path.join(__dirname, 'preload.js')
|
|
}
|
|
});
|
|
|
|
win.loadFile('index.html');
|
|
|
|
win.webContents.on('console-message', (event, level, message) => {
|
|
console.log(message);
|
|
});
|
|
|
|
win.webContents.on('did-finish-load', () => app.quit());
|
|
});
|