EmbarkJS blockchain must be done
This commit is contained in:
parent
7e52728dc0
commit
d5d0aa1600
|
@ -79,11 +79,12 @@ class Console {
|
||||||
this.events.emit('runcode:register', 'Web3', Web3, false);
|
this.events.emit('runcode:register', 'Web3', Web3, false);
|
||||||
this.events.emit('runcode:register', 'EmbarkJS', EmbarkJS, false);
|
this.events.emit('runcode:register', 'EmbarkJS', EmbarkJS, false);
|
||||||
|
|
||||||
this.events.once('code-generator-ready', () => {
|
EmbarkJS.Blockchain.done = true;
|
||||||
if (this.ipc.connected) {
|
if (this.ipc.connected) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.events.once('code-generator-ready', () => {
|
||||||
this.events.request('code-generator:embarkjs:provider-code', (code) => {
|
this.events.request('code-generator:embarkjs:provider-code', (code) => {
|
||||||
const func = () => {};
|
const func = () => {};
|
||||||
this.events.request('runcode:eval', code, func, true);
|
this.events.request('runcode:eval', code, func, true);
|
||||||
|
|
Loading…
Reference in New Issue