| 1234567891011 |
- /**
- * 主窗口 webPreferences。
- *
- * 渲染进程目前依赖 nodeIntegration 直接 require('electron') 调 IPC,
- * 若改成 contextIsolation,现有 preload 又没启用,行为会不一致。
- */
- export const sharedWebPreferences = {
- // webSecurity: false,
- contextIsolation: false,
- nodeIntegration: true,
- };
|