mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
move ipc server to main process
This commit is contained in:
@@ -8,7 +8,7 @@ const ChildProcess = require('child_process')
|
||||
const _ = require('lodash')
|
||||
const GhReleases = require('electron-gh-releases')
|
||||
// electron.crashReporter.start()
|
||||
require('./ipc')
|
||||
var ipcServer = null
|
||||
|
||||
var mainWindow = null
|
||||
var finderWindow = null
|
||||
@@ -112,8 +112,8 @@ app.on('ready', function () {
|
||||
}, 1000 * 60 * 60)
|
||||
|
||||
checkUpdate()
|
||||
|
||||
require('./hotkey')
|
||||
ipcServer = require('./ipcServer')
|
||||
ipcServer.server.start()
|
||||
})
|
||||
|
||||
module.exports = app
|
||||
|
||||
Reference in New Issue
Block a user