mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
Merge pull request #408 from embark-framework/onReady
execOnReady -> OnReady
This commit is contained in:
commit
7ae9720a26
@ -1,4 +1,6 @@
|
||||
var EmbarkJS = {};
|
||||
var EmbarkJS = {
|
||||
onReady: __embarkContext.execWhenReady
|
||||
};
|
||||
|
||||
EmbarkJS.isNewWeb3 = function() {
|
||||
var _web3 = new Web3();
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user