计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
Electron【效率与协作】Build Electron desktop apps with secure architecture and common pitfall avoidance.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
nodeIntegration: false is mandatory — renderer with Node.js access means XSS = full system compromisecontextIsolation: true is mandatory — separates preload context from renderereval() or new Function() in renderer — defeats all security boundariescontextBridge.exposeInMainWorld() is the only safe bridge — raw ipcRenderer exposure is vulnerablewebPreferences locked after window creation — can't enable nodeIntegration latershow: false then ready-to-show — prevents white flash, looks more nativeelectron-rebuild after every Electron upgrade — version mismatch = runtime crashapp.setAppUserModelId() — silent failure without itfile:// protocol — use custom protocol (app://) or local server--universal flag — ships both Intel and ARMwin.destroy() explicitly when donebackgroundThrottling: false if timers matter when minimized--inspect flag, connect via chrome://inspectwebContents.openDevTools() or keyboard shortcutelectron-log for persistent logs — console.log vanishes on restart