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

View file

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