From 99a38b08c8186619f1d66aae308bbbe659afda5f Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 27 Jul 2018 10:51:17 +0100 Subject: [PATCH] Adding ipns --- lib/modules/ipfs/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index 02174636..7eec9a8f 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -99,6 +99,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);