graphics() Windows 7 Graphics Fixes (Multi Monitor)

This commit is contained in:
Sebastian Hildebrandt
2020-12-14 20:02:17 +01:00
parent 4a0376227b
commit 21f6273055
4 changed files with 13 additions and 6 deletions
+3 -3
View File
@@ -722,9 +722,9 @@ function graphics(callback) {
if (ssections[i].trim() !== '') {
ssections[i] = 'BitsPerPixel ' + ssections[i];
msections[i] = 'Active ' + msections[i];
// tsections can be empty on earlier versions of powershell (<=2.0). Tag connection type as UNKNOWN
// if this information is missing
if (tsections.length === 0) {
// tsections can be empty OR undefined on earlier versions of powershell (<=2.0)
// Tag connection type as UNKNOWN by default if this information is missing
if (tsections.length === 0 || tsections[i] === undefined) {
tsections[i] = 'Unknown';
}
let linesScreen = ssections[i].split(os.EOL);