Merge pull request #408 from embark-framework/onReady

execOnReady -> OnReady
This commit is contained in:
Iuri Matias 2018-05-11 13:10:53 -04:00 committed by GitHub
commit 7ae9720a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
var EmbarkJS = {};
var EmbarkJS = {
onReady: __embarkContext.execWhenReady
};
EmbarkJS.isNewWeb3 = function() {
var _web3 = new Web3();

View File

@ -21,7 +21,7 @@ class App extends React.Component {
}
componentDidMount(){
__embarkContext.execWhenReady(() => {
EmbarkJS.onReady(() => {
if (EmbarkJS.isNewWeb3()) {
EmbarkJS.Messages.Providers.whisper.getWhisperVersion((err, version) => {
if(!err)