import { app, BrowserWindow } from "electron"; import path from "node:path"; app.whenReady().then(async () => { const win = new BrowserWindow({ width: 720, height: 480, show: false, webPreferences: { preload: path.join(__dirname, "../preload/index.js"), contextIsolation: true, sandbox: true, nodeIntegration: false, webSecurity: true, allowRunningInsecureContent: false, experimentalFeatures: false, webviewTag: false, spellcheck: false, backgroundThrottling: true, }, }); await win.loadURL("data:text/html,