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.setServiceCheck();
|
||||
this.addWhisperToEmbarkJS();
|
||||
this.addSetProvider();
|
||||
this.waitForWeb3Ready(() => {
|
||||
this.registerAPICalls();
|
||||
|
||||
this.events.request('processes:register', 'whisper', (cb) => {
|
||||
this.setServiceCheck()
|
||||
this.addWhisperToEmbarkJS();
|
||||
this.addSetProvider();
|
||||
this.waitForWeb3Ready(() => {
|
||||
this.registerAPICalls();
|
||||
cb();
|
||||
});
|
||||
});
|
||||
|
||||
this.events.request('processes:launch', 'whisper');
|
||||
}
|
||||
|
||||
connectToProvider() {
|
||||
|
|
Loading…
Reference in New Issue