const { app, BrowserWindow } = require('electron') const createWindow = () => { const win = new BrowserWindow({ width: 350, height: 260, autoHideMenuBar: true }) win.loadFile('index.html') } app.whenReady().then(() => { createWindow() })