graphics() fixed dual gpu issue (macOS)

This commit is contained in:
Sebastian Hildebrandt 2021-05-14 08:21:47 +02:00
parent 9a55c8b30f
commit 6b2a6d7879
4 changed files with 9 additions and 3 deletions

View File

@ -77,6 +77,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 5.6.21 | 2021-05-14 | `graphics()` fixed dual gpu issue (macOS) |
| 5.6.20 | 2021-05-07 | `system()` fixed vm detection (linux) |
| 5.6.19 | 2021-05-06 | `services()` modified service listing (linux) |
| 5.6.18 | 2021-05-06 | `processes()` fixed Windows mem bug (naming conform to all platforms) |

View File

@ -56,6 +56,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.6.21</th>
<td>2021-05-14</td>
<td><span class="code">graphics()</span> fixed dual gpu issue (macOS)</td>
</tr>
<tr>
<th scope="row">5.6.20</th>
<td>2021-05-07</td>

View File

@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.6.20</span></div>
<div class="version">New Version: <span id="version">5.6.21</span></div>
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
</div>
<div class="down">

View File

@ -108,7 +108,7 @@ function graphics(callback) {
};
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays
displays.push(currentDisplay);
if (currentDisplay.resolutionX && currentDisplay.resolutionY) { displays.push(currentDisplay); }
currentDisplay = {
vendor: '',
model: '',
@ -200,7 +200,7 @@ function graphics(callback) {
controllers.push(currentController);
}
if (Object.keys(currentDisplay).length > 0) {// just changed to Displays
displays.push(currentDisplay);
if (currentDisplay.resolutionX && currentDisplay.resolutionY) { displays.push(currentDisplay); }
}
return ({
controllers: controllers,