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

using ipc but not working in production

This commit is contained in:
Rokt33r
2015-11-24 02:54:45 +09:00
parent de3b76b31d
commit e5a2bfbcbd
6 changed files with 160 additions and 61 deletions

View File

@@ -11,6 +11,7 @@ require('../styles/main/index.styl')
import { openModal } from 'boost/modal'
import Tutorial from 'boost/components/modal/Tutorial'
import activityRecord from 'boost/activityRecord'
import dataStore from 'boost/dataStore'
const electron = require('electron')
const ipc = electron.ipcRenderer
@@ -29,6 +30,10 @@ ipc.on('notify', function (title, message) {
})
})
ipc.on('request-data', function () {
ipc.send('refresh-data', dataStore.getData())
})
let routes = (
<Route path='/' component={MainPage}>
<IndexRoute name='home' component={HomePage}/>