electron 启动警告
1. 问题
当启动 electron 时,控制台警告 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
2. 解决方法
在主进程文件 main.js 中添加如下内容
process.env["ELECTRON_DISABLE_SECURITY_WARNINGS"] = "true";