1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

No node-notifier

This commit is contained in:
Rokt33r
2015-11-22 15:57:44 +09:00
parent 954b3e9fc5
commit d5265407b9
4 changed files with 47 additions and 63 deletions

View File

@@ -18,6 +18,16 @@ window.addEventListener('online', function () {
ipc.send('check-update', 'check-update')
})
function notify (...args) {
return new window.Notification(...args)
}
ipc.on('notify', function (title, message) {
notify(title, {
body: message
})
})
let routes = (
<Route path='/' component={MainPage}>
<IndexRoute name='home' component={HomePage}/>