added 'config.version' to client-side

v1.18.x
Julian Lam 11 years ago
parent e65896351a
commit b049bd466c

@ -40,6 +40,7 @@ apiController.getConfig = function(req, res, next) {
config.environment = process.env.NODE_ENV;
config.isLoggedIn = !!req.user;
config['cache-buster'] = meta.config['cache-buster'] || '';
config.version = pkg.version;
if (!req.user) {
if (res.locals.isAPI) {

Loading…
Cancel
Save