Update ipfs-api dependency

This commit is contained in:
2018-04-02 18:17:50 +02:00
parent 0d1418e595
commit 83a0d56314
3 changed files with 1174 additions and 2247 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ export default Ember.Service.extend({
},
getFile(hash) {
return this.get('ipfs').cat(hash, { buffer: true }).then(res => {
return res.toString();
return this.get('ipfs').cat(hash).then(res => {
return res.toString('utf8');
}, err => {
Ember.Logger.warn('[ipfs] error trying to fetch file', hash, err);
});