mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-23 20:53:15 -05:00
Minor fix for details tab.
This commit is contained in:
parent
acc612396b
commit
4e506beda1
@ -5367,7 +5367,11 @@
|
|||||||
if (node.osdesc) { x += addDetailItem("Version", EscapeHtml(node.osdesc), s); }
|
if (node.osdesc) { x += addDetailItem("Version", EscapeHtml(node.osdesc), s); }
|
||||||
if (hardware.windows && hardware.windows.osinfo) {
|
if (hardware.windows && hardware.windows.osinfo) {
|
||||||
var m = hardware.windows.osinfo;
|
var m = hardware.windows.osinfo;
|
||||||
if (m.OSArchitecture) { x += addDetailItem("Architecture", EscapeHtml(m.OSArchitecture), s); }
|
if (m.OSArchitecture) {
|
||||||
|
if (m.OSArchitecture.startsWith('32')) { x += addDetailItem("Architecture", "32-bit", s); }
|
||||||
|
else if (m.OSArchitecture.startsWith('64')) { x += addDetailItem("Architecture", "64-bit", s); }
|
||||||
|
else { x += addDetailItem("Architecture", EscapeHtml(m.OSArchitecture), s); }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Windows Security Central
|
// Windows Security Central
|
||||||
|
@ -10055,7 +10055,11 @@
|
|||||||
if (node.osdesc) { x += addDetailItem("Version", EscapeHtml(node.osdesc), s); }
|
if (node.osdesc) { x += addDetailItem("Version", EscapeHtml(node.osdesc), s); }
|
||||||
if (hardware.windows && hardware.windows.osinfo) {
|
if (hardware.windows && hardware.windows.osinfo) {
|
||||||
var m = hardware.windows.osinfo;
|
var m = hardware.windows.osinfo;
|
||||||
if (m.OSArchitecture) { x += addDetailItem("Architecture", EscapeHtml(m.OSArchitecture), s); }
|
if (m.OSArchitecture) {
|
||||||
|
if (m.OSArchitecture.startsWith('32')) { x += addDetailItem("Architecture", "32-bit", s); }
|
||||||
|
else if (m.OSArchitecture.startsWith('64')) { x += addDetailItem("Architecture", "64-bit", s); }
|
||||||
|
else { x += addDetailItem("Architecture", EscapeHtml(m.OSArchitecture), s); }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (x != '') { sections.push({ name: "Operating System", html: x, img: 'software64.png'}); }
|
if (x != '') { sections.push({ name: "Operating System", html: x, img: 'software64.png'}); }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user