尝试修复Mac系统报错问题

This commit is contained in:
lyswhut
2019-09-06 11:47:39 +08:00
parent 57c75799a9
commit 3f876202c1
5 changed files with 13 additions and 17 deletions
+3
View File
@@ -1,3 +1,4 @@
// const { app } = require('electron')
const { mainOn } = require('../../common/icp')
module.exports = win => {
@@ -14,6 +15,8 @@ module.exports = win => {
mainOn('close', event => {
if (win) {
// window.destroy()
// console.log('close')
// app.quit()
win.close()
}
})