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:
@@ -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}/>
|
||||
|
||||
Reference in New Issue
Block a user