修复可能导致渲染进程无响应的问题

This commit is contained in:
lyswhut
2020-05-08 20:23:23 +08:00
parent 26bdf25423
commit 16903b0f5a
2 changed files with 4 additions and 5 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ global.envParams = parseEnv()
app.commandLine.appendSwitch('wm-window-animations-disabled')
// https://github.com/electron/electron/issues/18397
app.allowRendererProcessReuse = true
// 开发模式下为true时 多次引入native模块会导致渲染进程卡死
// https://github.com/electron/electron/issues/22791
app.allowRendererProcessReuse = !isDev
app.on('web-contents-created', (event, contents) => {