graphics() subVendor fix

This commit is contained in:
Sebastian Hildebrandt
2023-08-28 15:23:50 +02:00
parent 954dd229cc
commit 88d654a64c
9 changed files with 56 additions and 47 deletions
+4 -4
View File
@@ -204,7 +204,7 @@ function graphics(callback) {
let controllers = [];
let currentController = {
vendor: '',
subvendor: '',
subVendor: '',
model: '',
bus: '',
busAddress: '',
@@ -293,9 +293,9 @@ function graphics(callback) {
}
}
if (currentController.model && subsystem.indexOf(currentController.model) !== -1) {
const subvendor = subsystem.split(currentController.model)[0].trim();
if (subvendor) {
currentController.subvendor = subvendor;
const subVendor = subsystem.split(currentController.model)[0].trim();
if (subVendor) {
currentController.subVendor = subVendor;
}
}
}
+1 -1
View File
@@ -306,7 +306,7 @@ export namespace Systeminformation {
interface GraphicsControllerData {
vendor: string;
subvendor?: string;
subVendor?: string;
vendorId?: string;
model: string;
deviceId?: string;