mirror of https://github.com/embarklabs/embark.git
tolerate lack of addCheck which means is not running in dashboard mode
This commit is contained in:
parent
8907753dec
commit
fffde9d4b6
|
@ -50,7 +50,11 @@ class IPFS {
|
|||
self.logger.info('IPFS node is offline..');
|
||||
});
|
||||
|
||||
this.addCheck('IPFS', function (cb) {
|
||||
if (!self.addCheck) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.addCheck('IPFS', function (cb) {
|
||||
self.logger.trace("Checking IPFS version...");
|
||||
utils.httpGetJson('http://' + self.host + ':' + self.port + '/api/v0/version', function (err, body) {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue