const { app, BrowserWindow } = require('electron'); function createWindow () { const win = new BrowserWindow({ width: 800, height: 600, webPreferences: { nodeIntegration: true } }); win.setMenu(null); win.loadURL('http://localhost:8080'); win.setFullScreen(true); } // app.commandLine.appendSwitch('disable-gpu-vsync'); // app.commandLine.appendSwitch('disable-frame-rate-limit'); app.whenReady().then(createWindow);