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 utils = require('../../utils/utils.js');
|
||||
let fs = require('../../core/fs.js');
|
||||
let RunCode = require('../../coderunner/runCode');
|
||||
let IpfsApi = require('ipfs-api');
|
||||
|
||||
class IPFS {
|
||||
|
@ -117,7 +116,7 @@ class IPFS {
|
|||
|
||||
addIpfsObjectToConsole() {
|
||||
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