1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +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 282ca3ea2a
15 changed files with 147 additions and 513 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()
})
}