WIP: IPFS cleanup #107

Closed
fsmanuel wants to merge 3 commits from fix/ipfs-config into master
Showing only changes of commit f945b378e2 - Show all commits

View File

@ -11,6 +11,14 @@ class IPFS {
this._config = config; this._config = config;
} }
get config() {
return this._config;
}
get peerId() {
return this._ipfsAPI.id();
}
catAndMerge(data, deserialize) { catAndMerge(data, deserialize) {
// if no hash details are found simply return the data; nothing to merge // if no hash details are found simply return the data; nothing to merge
if (!data.hashSize || data.hashSize === 0) { if (!data.hashSize || data.hashSize === 0) {