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

@@ -0,0 +1,4 @@
import CodeMirror from 'codemirror'
import _ from 'lodash'
CodeMirror.modeInfo.push({name: 'Stylus', mime: 'text/x-styl', mode: 'stylus', ext: ['styl']})

View File

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