1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

refactor main-app process

clean unnecessary codes
This commit is contained in:
Dick Choi
2016-08-22 11:46:22 +09:00
parent 108e83a402
commit cff3fdae6e
5 changed files with 120 additions and 125 deletions

View File

@@ -2,6 +2,7 @@ const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
const path = require('path')
const ipc = require('./ipc')
var mainWindow = new BrowserWindow({
width: 1080,
@@ -46,4 +47,8 @@ app.on('activate', function () {
mainWindow.show()
})
app.on('before-quit', function (e) {
mainWindow.removeAllListeners()
})
module.exports = mainWindow