Adding ipns

This commit is contained in:
Anthony Laibe 2018-07-27 10:51:17 +01:00 committed by Iuri Matias
parent 9e4b003297
commit 8830cd9b3b
1 changed files with 7 additions and 0 deletions

View File

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