Merge pull request #470 from embark-framework/ipfs_cmd_fix

register ipfs cmd correctly
This commit is contained in:
Iuri Matias 2018-05-31 09:46:36 -04:00 committed by GitHub
commit 7d28cdfd01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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);
} }
} }