Browse Source

populate query in header searchbox

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

8
app.js

@ -93,10 +93,16 @@ 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;
}
// make some var available to all request
// ex: req.cheeseStr = "cheese";

Loading…
Cancel
Save