refactor(modules/whisper): use ProcessManager APIs to launch process
This commit is contained in:
parent
3dd28b9459
commit
be3c792144
|
@ -22,12 +22,18 @@ class Whisper {
|
||||||
}
|
}
|
||||||
|
|
||||||
this.connectToProvider();
|
this.connectToProvider();
|
||||||
this.setServiceCheck();
|
|
||||||
this.addWhisperToEmbarkJS();
|
this.events.request('processes:register', 'whisper', (cb) => {
|
||||||
this.addSetProvider();
|
this.setServiceCheck()
|
||||||
this.waitForWeb3Ready(() => {
|
this.addWhisperToEmbarkJS();
|
||||||
this.registerAPICalls();
|
this.addSetProvider();
|
||||||
|
this.waitForWeb3Ready(() => {
|
||||||
|
this.registerAPICalls();
|
||||||
|
cb();
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.events.request('processes:launch', 'whisper');
|
||||||
}
|
}
|
||||||
|
|
||||||
connectToProvider() {
|
connectToProvider() {
|
||||||
|
|
Loading…
Reference in New Issue