mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 16:02:16 +03:00
Added option to disable mobile site.
This commit is contained in:
parent
45517db7dd
commit
dcc950f7de
@ -299,6 +299,7 @@
|
|||||||
"titlePicture": { "type": "string", "default": null, "description": "Web site .png logo file that is 450x66 in size placed in meshcentral-data that is used on the top of many pages." },
|
"titlePicture": { "type": "string", "default": null, "description": "Web site .png logo file that is 450x66 in size placed in meshcentral-data that is used on the top of many pages." },
|
||||||
"loginPicture": { "type": "string", "default": null, "description": "Web site .png logo file placed in meshcentral-data that used on the login page when sitestyle is 2." },
|
"loginPicture": { "type": "string", "default": null, "description": "Web site .png logo file placed in meshcentral-data that used on the login page when sitestyle is 2." },
|
||||||
"rootRedirect": { "type": "string", "default": null, "description": "Redirects HTTP root requests to this URL. When in use, direct users to /login to see the normal login page." },
|
"rootRedirect": { "type": "string", "default": null, "description": "Redirects HTTP root requests to this URL. When in use, direct users to /login to see the normal login page." },
|
||||||
|
"mobileSite": { "type": "boolean", "default": true, "description": "When set to false, this setting will disable the mobile site." },
|
||||||
"unknownUserRootRedirect": { "type": "string", "default": null, "description": "Redirects HTTP root requests to this URL only where user is not already logged in. When in use, direct users to /login to see the normal login page." },
|
"unknownUserRootRedirect": { "type": "string", "default": null, "description": "Redirects HTTP root requests to this URL only where user is not already logged in. When in use, direct users to /login to see the normal login page." },
|
||||||
"userQuota": { "type": "integer" },
|
"userQuota": { "type": "integer" },
|
||||||
"meshQuota": { "type": "integer" },
|
"meshQuota": { "type": "integer" },
|
||||||
|
@ -7440,6 +7440,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
|||||||
var mobile = isMobileBrowser(req), minify = (domain.minify == true), p;
|
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.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 (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 (mobile) {
|
||||||
if ((domain != null) && (domain.webviewspath != null)) { // If the domain has a web views path, use that first
|
if ((domain != null) && (domain.webviewspath != null)) { // If the domain has a web views path, use that first
|
||||||
if (minify) {
|
if (minify) {
|
||||||
|
Loading…
Reference in New Issue
Block a user