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:
parent
45517db7dd
commit
dcc950f7de
2 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue