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

override meta.js

This commit is contained in:
Dick Choi
2016-10-17 02:16:28 +09:00
parent 0ce67ccd35
commit f112b0bf03
2 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ require('!!style!css!stylus?sourceMap!./global.styl')
import { Router, Route, IndexRoute, IndexRedirect, hashHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
require('./lib/ipcClient')
require('../lib/customMeta')
const electron = require('electron')
@@ -85,6 +86,8 @@ ReactDOM.render((
ipcRenderer.send('update-check', 'check-update')
window.addEventListener('online', function () {
ipcRenderer.send('update-check', 'check-update')
if (!store.getState().status.updateReady) {
ipcRenderer.send('update-check', 'check-update')
}
})
})