
Co-authored-by: Cheng Zhao <zcbenz@gmail.com> Co-authored-by: Milan Burda <milan.burda@gmail.com>
20 lines
362 B
JavaScript
20 lines
362 B
JavaScript
const { app, BrowserWindow } = require('electron');
|
|
|
|
function createWindow () {
|
|
const mainWindow = new BrowserWindow({
|
|
webPreferences: {
|
|
nodeIntegration: true,
|
|
contextIsolation: false
|
|
}
|
|
});
|
|
|
|
mainWindow.on('close', () => {
|
|
app.quit();
|
|
});
|
|
|
|
mainWindow.loadFile('index.html');
|
|
}
|
|
|
|
app.whenReady().then(() => {
|
|
createWindow();
|
|
});
|