mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
fix Localization Settings not saving server side #2164
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
a8fc5e1187
commit
707982a71b
@ -8757,7 +8757,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Filter the user web site and only output state that we need to keep
|
// Filter the user web site and only output state that we need to keep
|
||||||
const acceptableUserWebStateStrings = ['webPageStackMenu', 'notifications', 'deviceView', 'nightMode', 'webPageFullScreen', 'search', 'showRealNames', 'sort', 'deskAspectRatio', 'viewsize', 'DeskControl', 'uiMode', 'footerBar'];
|
const acceptableUserWebStateStrings = ['webPageStackMenu', 'notifications', 'deviceView', 'nightMode', 'webPageFullScreen', 'search', 'showRealNames', 'sort', 'deskAspectRatio', 'viewsize', 'DeskControl', 'uiMode', 'footerBar','loctag'];
|
||||||
const acceptableUserWebStateDesktopStrings = ['encoding', 'showfocus', 'showmouse', 'showcad', 'limitFrameRate', 'noMouseRotate', 'quality', 'scaling', 'agentencoding']
|
const acceptableUserWebStateDesktopStrings = ['encoding', 'showfocus', 'showmouse', 'showcad', 'limitFrameRate', 'noMouseRotate', 'quality', 'scaling', 'agentencoding']
|
||||||
obj.filterUserWebState = function (state) {
|
obj.filterUserWebState = function (state) {
|
||||||
if (typeof state == 'string') { try { state = JSON.parse(state); } catch (ex) { return null; } }
|
if (typeof state == 'string') { try { state = JSON.parse(state); } catch (ex) { return null; } }
|
||||||
|
Loading…
Reference in New Issue
Block a user