1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 18:26:26 +00:00

Refactor main process and add exception handler for Socket server

This commit is contained in:
Dick Choi
2015-12-19 00:54:11 +09:00
parent be3c519a57
commit 16bcd86792
5 changed files with 275 additions and 116 deletions

View File

@@ -1,4 +1,5 @@
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const path = require('path')
@@ -20,4 +21,9 @@ mainWindow.webContents.on('new-window', function (e) {
e.preventDefault()
})
app.on('activate', function () {
if (mainWindow == null) return null
mainWindow.show()
})
module.exports = mainWindow