From ef195cb3ba2950f420fb33ff0f4b234dd5351a2f Mon Sep 17 00:00:00 2001 From: Sebastian Hildebrandt Date: Thu, 26 Aug 2021 11:36:30 +0200 Subject: [PATCH] graphics() fix empty controllers (macOS) --- lib/graphics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphics.js b/lib/graphics.js index 96f6ac2..619dd93 100644 --- a/lib/graphics.js +++ b/lib/graphics.js @@ -206,7 +206,7 @@ function graphics(callback) { } } } - if (Object.keys(currentController).length > 0) {// just changed to Displays + if (Object.keys(currentController).length > 0 && (currentController.vendor || currentController.model)) {// just changed to Displays controllers.push(currentController); } if (Object.keys(currentDisplay).length > 0) {// just changed to Displays