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

Added option to disable mobile site.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-03 18:50:04 -08:00
parent 45517db7dd
commit dcc950f7de
2 changed files with 2 additions and 0 deletions

View file

@ -7440,6 +7440,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
var mobile = isMobileBrowser(req), minify = (domain.minify == true), p;
if (req.query.mobile == '1') { mobile = true; } else if (req.query.mobile == '0') { mobile = false; }
if (req.query.minify == '1') { minify = true; } else if (req.query.minify == '0') { minify = false; }
if ((domain != null) && (domain.mobilesite === false)) { mobile = false; }
if (mobile) {
if ((domain != null) && (domain.webviewspath != null)) { // If the domain has a web views path, use that first
if (minify) {