use version from constructor parameter

This commit is contained in:
Iuri Matias 2017-04-02 14:49:19 -04:00
parent 86335e0c74
commit dd7984bcda
1 changed files with 1 additions and 2 deletions

View File

@ -2,11 +2,10 @@
let blessed = require("blessed");
let CommandHistory = require('./command_history.js');
let version = require('../../package.json').version;
class Dashboard {
constructor(options) {
let title = (options && options.title) || "Embark " + version;
let title = (options && options.title) || "Embark " + options.version;
this.env = options.env;
this.console = options.console;
this.history = new CommandHistory();