avoid potential issue

indiachan-spamvector
Thomas Lynch 2 years ago
parent 0a8c8e3ed5
commit cfa024c760
  1. 2
      helpers/dynamic.js

@ -5,7 +5,7 @@ module.exports = (req, res, code, page, data) => {
if (req.body.minimal) { if (req.body.minimal) {
data.minimal = true; data.minimal = true;
} }
if (req.headers['x-using-xhr'] != null) { if (req.headers && req.headers['x-using-xhr'] != null) {
//if sending header with js, and not a bypass_minimal page, show modal //if sending header with js, and not a bypass_minimal page, show modal
return res.json(data); return res.json(data);
} else { } else {

Loading…
Cancel
Save