1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +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

@@ -4,14 +4,12 @@ import store from './store'
import React from 'react'
import ReactDOM from 'react-dom'
require('!!style!css!stylus?sourceMap!./global.styl')
import activityRecord from 'browser/lib/activityRecord'
import { Router, Route, IndexRoute, IndexRedirect, hashHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
require('./lib/ipcClient')
const electron = require('electron')
const ipc = electron.ipcRenderer
activityRecord.init()
ipc.send('check-update', 'check-update')
window.addEventListener('online', function () {
ipc.send('check-update', 'check-update')