diff --git a/lib/dashboard/dashboard.js b/lib/dashboard/dashboard.js index 735706cd..2ce994fb 100644 --- a/lib/dashboard/dashboard.js +++ b/lib/dashboard/dashboard.js @@ -35,9 +35,7 @@ class Dashboard { self.events.on('status', monitor.setStatus.bind(monitor)); self.events.on('servicesState', monitor.availableServices.bind(monitor)); - self.events.setCommandHandler("console:command", (cmd, cb) => { - cb(monitor.executeCmd(cmd)); - }); + self.events.setCommandHandler("console:command", monitor.executeCmd.bind(monitor)); self.logger.info('========================'.bold.green); self.logger.info(('Welcome to Embark ' + self.version).yellow.bold);