graphics() improved display detection (windows)
This commit is contained in:
parent
1cc0c99768
commit
e5d2f69f2f
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
||||
|
||||
| Version | Date | Comment |
|
||||
| -------------- | -------------- | -------- |
|
||||
| 4.14.17 | 2019-10-22 | `graphics()` improved display detection (windows) |
|
||||
| 4.14.16 | 2019-10-19 | `graphics()` improved display detection (windows) |
|
||||
| 4.14.15 | 2019-10-18 | `graphics()` fallback display detection (windows) |
|
||||
| 4.14.14 | 2019-10-18 | `powerShell()` fixed error handling (windows) |
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
[![Caretaker][caretaker-image]][caretaker-url]
|
||||
[![MIT license][license-img]][license-url]
|
||||
|
||||
This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 300,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project!
|
||||
This is amazing. Started as a small project just for myself, it now has > 9,000 lines of code, > 250 versions published, up to 400,000 downloads per month, > 1 Mio downloads overall. Thank you to all who contributed to this project!
|
||||
|
||||
## New Version 4.0
|
||||
|
||||
|
||||
@ -83,6 +83,11 @@
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">4.14.17</th>
|
||||
<td>2019-10-22</td>
|
||||
<td><span class="code">graphics()</span> improved display detection (windows)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">4.14.16</th>
|
||||
<td>2019-10-19</td>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<img class="logo" src="assets/logo.png">
|
||||
<div class="title">systeminformation</div>
|
||||
<div class="subtitle"><span id="typed"></span></div>
|
||||
<div class="version">Current Version: <span id="version">4.14.16</span></div>
|
||||
<div class="version">Current Version: <span id="version">4.14.17</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">
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user