Add ipns resolve

This commit is contained in:
Anthony Laibe 2018-07-26 14:03:35 +01:00 committed by Pascal Precht
parent 3a532a05e8
commit 6a3e8081a5
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 1 additions and 0 deletions

View File

@ -99,6 +99,7 @@ class IPFS {
let code = ""; let code = "";
code += "\n" + fs.readFileSync(utils.joinPath(__dirname, 'embarkjs.js')).toString(); code += "\n" + fs.readFileSync(utils.joinPath(__dirname, 'embarkjs.js')).toString();
code += "\nEmbarkJS.Storage.registerProvider('ipfs', __embarkIPFS);"; code += "\nEmbarkJS.Storage.registerProvider('ipfs', __embarkIPFS);";
code += "\nEmbarkJS.Names.registerProvider('ipns', __embarkIPFS);";
this.embark.addCodeToEmbarkJS(code); this.embark.addCodeToEmbarkJS(code);
} }