diff --git a/lib/modules/ipfs/index.js b/lib/modules/ipfs/index.js index bccd839cc..1b25411e3 100644 --- a/lib/modules/ipfs/index.js +++ b/lib/modules/ipfs/index.js @@ -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); } }