const { app, BrowserWindow } = require('electron'); const path = require('path'); function createWindow() { const win = new BrowserWindow({ width: 900, height: 560, resizable: true, title: 'Meridian CRM — Account Record [Electron]', autoHideMenuBar: true, webPreferences: { contextIsolation: true }, }); win.setMenuBarVisibility(false); win.loadFile(path.join(__dirname, 'index.html')); } app.whenReady().then(() => { createWindow(); app.on('activate', () => { if (BrowserWindow.getAllWindows().length === 0) createWindow(); }); }); app.on('window-all-closed', () => app.quit());