From 29085e6ce88417cac74633544b5872136a65391e Mon Sep 17 00:00:00 2001 From: Lloyd Hilaiel <lloyd@hilaiel.com> Date: Tue, 19 Jul 2011 16:19:36 -0600 Subject: [PATCH] make the production flag avaiable to all templates --- browserid/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/browserid/app.js b/browserid/app.js index 74c831bd3..9a12c9324 100644 --- a/browserid/app.js +++ b/browserid/app.js @@ -31,6 +31,8 @@ function internal_redirector(new_url) { function router(app) { app.set("views", __dirname + '/views'); + app.set('view options', { production: exports.production }); + // this should probably be an internal redirect // as soon as relative paths are figured out. app.get('/sign_in', function(req, res, next ){ -- GitLab