const { app, BrowserWindow } = require('electron') function createWindow () { const win = new BrowserWindow({ autoHideMenuBar: true, width: 800, height: 600, icon: __dirname + '/src/img/chains.png' }) //win.autoHideMenuBar = true; win.loadFile('index.html') } app.whenReady().then(() => { createWindow() })