我已经升级到Electron14,重构了我的项目以适应"Removed: remote module"的破坏性变化,但由于以下TypeScript错误,我无法编译它: Type '{ plugins:specify known properties, and 'enableRemoteModule' does not exist in type 'WebPreferences'.ts(2322)
electron.d.tswebPreferences' which is dec
我已经阅读了文档,下面的代码将输出BrowserWindow:windowObject.webContents.session.cookies中使用的所有cookie。如果我使用以下代码,除了急需的HTTPonly (由于安全原因不会返回)之外,我确实会得到所有cookie: console.log(result);证明了这个问题;将此代码放置在app.on(“就绪”)函数中:
const W