Skip to content

Commit f112b0b

Browse files
committed
override meta.js
1 parent 0ce67cc commit f112b0b

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

browser/lib/customMeta.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import CodeMirror from 'codemirror'
2+
import _ from 'lodash'
3+
4+
CodeMirror.modeInfo.push({name: 'Stylus', mime: 'text/x-styl', mode: 'stylus', ext: ['styl']})

browser/main/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ require('!!style!css!stylus?sourceMap!./global.styl')
77
import { Router, Route, IndexRoute, IndexRedirect, hashHistory } from 'react-router'
88
import { syncHistoryWithStore } from 'react-router-redux'
99
require('./lib/ipcClient')
10+
require('../lib/customMeta')
1011

1112
const electron = require('electron')
1213

@@ -85,6 +86,8 @@ ReactDOM.render((
8586

8687
ipcRenderer.send('update-check', 'check-update')
8788
window.addEventListener('online', function () {
88-
ipcRenderer.send('update-check', 'check-update')
89+
if (!store.getState().status.updateReady) {
90+
ipcRenderer.send('update-check', 'check-update')
91+
}
8992
})
9093
})

0 commit comments

Comments
 (0)