mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Fixed mobile site startup error, #3658
This commit is contained in:
parent
96b08924c3
commit
b57ed96c48
1 changed files with 6 additions and 5 deletions
|
@ -1298,11 +1298,6 @@
|
||||||
if (t != null) { desktopsettings = JSON.parse(t); }
|
if (t != null) { desktopsettings = JSON.parse(t); }
|
||||||
applyDesktopSettings();
|
applyDesktopSettings();
|
||||||
|
|
||||||
// Arrange the user interface
|
|
||||||
QV('manageEmail2FA', (features & 0x00800000) && (serverinfo.lock2factor != true));
|
|
||||||
QV('managePhoneNumber1', (features & 0x02000000) && (features & 0x04000000) && (serverinfo.lock2factor != true));
|
|
||||||
QV('managePhoneNumber2', (features & 0x02000000) && !(features & 0x04000000) && (serverinfo.lock2factor != true));
|
|
||||||
|
|
||||||
//attemptWebRTC = false; // For now, default WebRTC off unless we set it in the URL.
|
//attemptWebRTC = false; // For now, default WebRTC off unless we set it in the URL.
|
||||||
if (args.webrtc != null) { attemptWebRTC = (args.webrtc == 1); }
|
if (args.webrtc != null) { attemptWebRTC = (args.webrtc == 1); }
|
||||||
|
|
||||||
|
@ -1422,6 +1417,12 @@
|
||||||
addNotification({ text: format("Certificate expires in {0} day(s)", days) });
|
addNotification({ text: format("Certificate expires in {0} day(s)", days) });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Arrange the user interface
|
||||||
|
QV('manageEmail2FA', (features & 0x00800000) && (serverinfo.lock2factor != true));
|
||||||
|
QV('managePhoneNumber1', (features & 0x02000000) && (features & 0x04000000) && (serverinfo.lock2factor != true));
|
||||||
|
QV('managePhoneNumber2', (features & 0x02000000) && !(features & 0x04000000) && (serverinfo.lock2factor != true));
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'authcookie': {
|
case 'authcookie': {
|
||||||
|
|
Loading…
Reference in a new issue