Merge pull request #470 from embark-framework/ipfs_cmd_fix
register ipfs cmd correctly
This commit is contained in:
commit
7d28cdfd01
|
@ -1,7 +1,6 @@
|
||||||
let UploadIPFS = require('./upload.js');
|
let UploadIPFS = require('./upload.js');
|
||||||
let utils = require('../../utils/utils.js');
|
let utils = require('../../utils/utils.js');
|
||||||
let fs = require('../../core/fs.js');
|
let fs = require('../../core/fs.js');
|
||||||
let RunCode = require('../../coderunner/runCode');
|
|
||||||
let IpfsApi = require('ipfs-api');
|
let IpfsApi = require('ipfs-api');
|
||||||
|
|
||||||
class IPFS {
|
class IPFS {
|
||||||
|
@ -117,7 +116,7 @@ class IPFS {
|
||||||
|
|
||||||
addIpfsObjectToConsole() {
|
addIpfsObjectToConsole() {
|
||||||
let ipfs = IpfsApi(this.storageConfig.host, this.storageConfig.port);
|
let ipfs = IpfsApi(this.storageConfig.host, this.storageConfig.port);
|
||||||
RunCode.doEval("", {ipfs: ipfs});
|
this.events.emit("runcode:register", "ipfs", ipfs);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue