mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-26 04:15:29 +00:00
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…
x
Reference in New Issue
Block a user