|
@ -6,7 +6,6 @@ import { render } from 'react-dom' |
|
|
import { AppContainer } from 'react-hot-loader' |
|
|
import { AppContainer } from 'react-hot-loader' |
|
|
import createHistory from 'history/createHashHistory' |
|
|
import createHistory from 'history/createHashHistory' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
import { delay } from 'helpers/promise' |
|
|
|
|
|
|
|
|
|
|
|
import createStore from 'renderer/createStore' |
|
|
import createStore from 'renderer/createStore' |
|
|
import events from 'renderer/events' |
|
|
import events from 'renderer/events' |
|
@ -73,10 +72,7 @@ async function init() { |
|
|
if (isMainWindow) { |
|
|
if (isMainWindow) { |
|
|
events({ store, locked }) |
|
|
events({ store, locked }) |
|
|
|
|
|
|
|
|
const libcoreVersion = await Promise.race([ |
|
|
const libcoreVersion = await libcoreGetVersion.send().toPromise() |
|
|
libcoreGetVersion.send().toPromise(), |
|
|
|
|
|
delay(10000).then(() => Promise.reject(new Error("timeout: can't load libcore"))), |
|
|
|
|
|
]) |
|
|
|
|
|
console.log('libcore', libcoreVersion) |
|
|
console.log('libcore', libcoreVersion) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|