mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Fixed user array type in MeshCore.
This commit is contained in:
parent
b87342b937
commit
7f2bcbc919
3 changed files with 3 additions and 3 deletions
|
@ -3723,7 +3723,7 @@ function createMeshCore(agent) {
|
|||
if (x != LastPeriodicServerUpdate) { LastPeriodicServerUpdate = x; mesh.SendCommand(meshCoreObj); }
|
||||
}
|
||||
|
||||
function sortObjRec(o) { if (typeof o != 'object') return o; for (var i in o) { if (typeof o[i] == 'object') { o[i] = sortObjRec(o[i]); } } return sortObj(o); }
|
||||
function sortObjRec(o) { if ((typeof o != 'object') || (Array.isArray(o))) return o; for (var i in o) { if (typeof o[i] == 'object') { o[i] = sortObjRec(o[i]); } } return sortObj(o); }
|
||||
function sortObj(o) { return Object.keys(o).sort().reduce(function (result, key) { result[key] = o[key]; return result; }, {}); }
|
||||
|
||||
// Starting function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue