From 281110239d589f6c7772f7e95686080777e5ab08 Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Tue, 19 Jul 2011 17:25:43 -0700
Subject: [PATCH] Going back to the previous scheme to set the production flag

---
 browserid/app.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/browserid/app.js b/browserid/app.js
index 03c05aca2..0c572dfb3 100644
--- a/browserid/app.js
+++ b/browserid/app.js
@@ -22,8 +22,6 @@ const
 const COOKIE_SECRET = secrets.hydrateSecret('cookie_secret', VAR_DIR);
 const COOKIE_KEY = 'browserid_state';
 
-const PRODUCTION = true;
-
 function internal_redirector(new_url) {
   return function(req, resp, next) {
     req.url = new_url;
@@ -34,7 +32,7 @@ function internal_redirector(new_url) {
 function router(app) {
   app.set("views", __dirname + '/views'); 
 
-  app.set('view options', { production: PRODUCTION });
+  app.set('view options', { production: exports.production });
 
   // this should probably be an internal redirect
   // as soon as relative paths are figured out.
@@ -110,7 +108,7 @@ function router(app) {
 };
 
 exports.varDir = VAR_DIR;
-exports.production = PRODUCTION;
+exports.production = true;
 
 
 
-- 
GitLab