graphics() improved display detection (windows)

This commit is contained in:
Sebastian Hildebrandt
2019-10-22 19:43:30 +02:00
parent 1cc0c99768
commit e5d2f69f2f
5 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -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;
}