Fixed bug where 'info' resulted in 'darwin not supported' exception on MacOS
Bryan Roe committed
Jun 21, 2019 at 15:40 UTC
c2ea514d1f8aed562d9ab0f75753269a607b826f
2 files changed
+2
-2
agents/meshcore.js
+1
-1
@@ -1696,7 +1696,7 @@ function createMeshCore(agent)
1696
response += '\r\lastMeInfo: ' + lastMeInfo + '.';
1697
var oldNodeId = db.Get('OldNodeId');
1698
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
1699
- if (process.platform != 'win32') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
1699
+ if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
1700
break;
1701
}
1702
case 'osinfo': { // Return the operating system information
agents/meshcore.min.js
+1
-1
@@ -1696,7 +1696,7 @@ function createMeshCore(agent)
1696
response += '\r\lastMeInfo: ' + lastMeInfo + '.';
1697
var oldNodeId = db.Get('OldNodeId');
1698
if (oldNodeId != null) { response += '\r\nOldNodeID: ' + oldNodeId + '.'; }
1699
- if (process.platform != 'win32') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
1699
+ if (process.platform == 'linux' || process.platform == 'freebsd') { response += '\r\nX11 support: ' + require('monitor-info').kvm_x11_support + '.'; }
1700
break;
1701
}
1702
case 'osinfo': { // Return the operating system information