Browse Source

populate query in header searchbox

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
250dee159a
  1. 12
      app.js

12
app.js

@ -93,11 +93,17 @@ app.use(function(req, res, next) {
} else {
res.locals.userMessageType = "info";
}
req.session.userMessage = null;
req.session.userMessageType = null;
}
if (req.session.query) {
res.locals.query = req.session.query;
req.session.query = null;
}
req.session.userMessage = null;
req.session.userMessageType = null;
// make some var available to all request
// ex: req.cheeseStr = "cheese";

Loading…
Cancel
Save