mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-27 15:45:53 -05:00
Fixed bug where 'info' resulted in 'darwin not supported' exception on MacOS
This commit is contained in:
parent
1aae4e2616
commit
c2ea514d1f
@ -1696,7 +1696,7 @@ function createMeshCore(agent)
|
|||||||
response += '\r\lastMeInfo: ' + lastMeInfo + '.';
|
response += '\r\lastMeInfo: ' + lastMeInfo + '.';
|
||||||
var oldNodeId = db.Get('OldNodeId');
|
var oldNodeId = db.Get('OldNodeId');
|
||||||
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
|
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
|
||||||
if (process.platform != 'win32') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
|
if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'osinfo': { // Return the operating system information
|
case 'osinfo': { // Return the operating system information
|
||||||
|
2
agents/meshcore.min.js
vendored
2
agents/meshcore.min.js
vendored
@ -1696,7 +1696,7 @@ function createMeshCore(agent)
|
|||||||
response += '\r\lastMeInfo: ' + lastMeInfo + '.';
|
response += '\r\lastMeInfo: ' + lastMeInfo + '.';
|
||||||
var oldNodeId = db.Get('OldNodeId');
|
var oldNodeId = db.Get('OldNodeId');
|
||||||
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
|
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
|
||||||
if (process.platform != 'win32') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
|
if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'osinfo': { // Return the operating system information
|
case 'osinfo': { // Return the operating system information
|
||||||
|
Loading…
Reference in New Issue
Block a user