mirror of https://github.com/embarklabs/embark.git
fix(@embark/embarkjs-ipfs): use `version()` API instead of `id()` to determine availability
This commit is contained in:
parent
f7f54f299d
commit
1595e4b37f
|
@ -37,9 +37,9 @@ __embarkIPFS.isAvailable = function () {
|
|||
if (!this._ipfsConnection) {
|
||||
return resolve(false);
|
||||
}
|
||||
this._ipfsConnection.id()
|
||||
.then((id) => {
|
||||
resolve(Boolean(id));
|
||||
this._ipfsConnection.version()
|
||||
.then((version) => {
|
||||
resolve(Boolean(version));
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
|
|
Loading…
Reference in New Issue