1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-16 03:06:27 +00:00

move ipc server to main process

This commit is contained in:
Dick Choi
2016-08-23 00:52:33 +09:00
parent cff3fdae6e
commit 17223db3ea
14 changed files with 146 additions and 512 deletions

View File

@@ -2,7 +2,7 @@ import _ from 'lodash'
const OSX = global.process.platform === 'darwin'
const electron = require('electron')
const { remote } = electron
const { ipcRenderer } = electron
const defaultConfig = {
zoom: 1,
@@ -73,9 +73,8 @@ function set (updates) {
document.body.setAttribute('data-theme', 'default')
}
remote.getCurrentWindow().webContents.send('config-renew', {
config: get(),
silent: false
ipcRenderer.send('config-renew', {
config: get()
})
}