Add IPFS service #4

Merged
raucao merged 4 commits from feature/ipfs into master 2017-02-18 09:48:26 +00:00
Showing only changes of commit 0bf09fbe49 - Show all commits
+1 -1
View File
@@ -23,7 +23,7 @@ export default Ember.Service.extend({
},
getFile(hash) {
return this.get('ipfs').cat(hash, { buffer: true }, (err, res) => {
return this.get('ipfs').cat(hash, { buffer: true }).then(res) => {
return res.toString();
});
}