mirror of https://github.com/embarklabs/embark.git
Adding ipns
This commit is contained in:
parent
6a3e8081a5
commit
99a38b08c8
|
@ -99,6 +99,13 @@ 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);";
|
||||||
|
|
||||||
|
this.embark.addCodeToEmbarkJS(code);
|
||||||
|
}
|
||||||
|
|
||||||
|
addNamesystemProviderToEmbarkJS() {
|
||||||
|
let code = "";
|
||||||
|
code += "\n" + fs.readFileSync(utils.joinPath(__dirname, 'embarkjs', 'name.js')).toString();
|
||||||
code += "\nEmbarkJS.Names.registerProvider('ipns', __embarkIPFS);";
|
code += "\nEmbarkJS.Names.registerProvider('ipns', __embarkIPFS);";
|
||||||
|
|
||||||
this.embark.addCodeToEmbarkJS(code);
|
this.embark.addCodeToEmbarkJS(code);
|
||||||
|
|
Loading…
Reference in New Issue