Correctly pull in client version from package.json

This commit is contained in:
Erik Johnston 2015-07-16 10:38:00 +01:00
parent 02045858f7
commit 5d99abf18c
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ var MatrixClientPeg = require("../../MatrixClientPeg");
var React = require("react");
var q = require('q');
var dis = require("../../dispatcher");
var version = require('../../../package.json').version;
var ComponentBroker = require('../../ComponentBroker');
@ -34,7 +35,7 @@ module.exports = {
displayName: null,
avatarUrl: null,
threePids: [],
clientVersion: "v0.X.Y",
clientVersion: version,
phase: this.Phases.Loading,
};
},