graphics() improved display detection (windows)
This commit is contained in:
+2
-2
@@ -589,7 +589,7 @@ function graphics(callback) {
|
||||
tsections.shift();
|
||||
|
||||
// monitor ID (powershell) - model / vendor
|
||||
const res = data[5].split(/\r/);
|
||||
const res = data[5].split(/\r\n/);
|
||||
let isections = [];
|
||||
res.forEach(element => {
|
||||
const parts = element.split('|');
|
||||
@@ -726,7 +726,7 @@ function graphics(callback) {
|
||||
let displayVendor = '';
|
||||
let displayModel = '';
|
||||
isections.forEach(element => {
|
||||
if (element.instanceId.toLowerCase().startsWith(instanceName)) {
|
||||
if (element.instanceId.toLowerCase().startsWith(instanceName) && vendor.startsWith('(') && model.startsWith('PnP')) {
|
||||
displayVendor = element.vendor;
|
||||
displayModel = element.model;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user