Skip to content

Commit

Permalink
fix: 部分客户端登录页面报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaifan committed Apr 2, 2022
1 parent 1939d42 commit 08c46fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions electron/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ ipcMain.on('windowDestroy', (event) => {
* 关闭所有子窗口
*/
ipcMain.on('subWindowCloseAll', (event) => {
subWindow.some(item => {
item.close()
subWindow.some(({browser}) => {
browser && browser.close()
})
event.returnValue = "ok"
})
Expand All @@ -266,8 +266,8 @@ ipcMain.on('subWindowCloseAll', (event) => {
* 销毁所有子窗口
*/
ipcMain.on('subWindowDestroyAll', (event) => {
subWindow.some(item => {
item.destroy()
subWindow.some(({browser}) => {
browser && browser.destroy()
})
event.returnValue = "ok"
})
Expand Down

0 comments on commit 08c46fd

Please sign in to comment.