1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Updated express-handlebars & changed confirmation on page exit.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-14 16:33:49 -08:00
parent 71b82689d5
commit 47ff8ab14e
4 changed files with 18 additions and 7 deletions

View file

@ -5587,7 +5587,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
}
// Setup middleware
obj.app.engine('handlebars', obj.exphbs({ defaultLayout: null })); // defaultLayout: 'main'
obj.app.engine('handlebars', obj.exphbs({ defaultLayout: 'empty' }));
obj.app.set('view engine', 'handlebars');
if (obj.args.trustedproxy) {
// Reverse proxy should add the "X-Forwarded-*" headers