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 |
|
| 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.16 | 2019-10-19 | `graphics()` improved display detection (windows) |
|
||||||
| 4.14.15 | 2019-10-18 | `graphics()` fallback 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) |
|
| 4.14.14 | 2019-10-18 | `powerShell()` fixed error handling (windows) |
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
[![Caretaker][caretaker-image]][caretaker-url]
|
[![Caretaker][caretaker-image]][caretaker-url]
|
||||||
[![MIT license][license-img]][license-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
|
## New Version 4.0
|
||||||
|
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<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>
|
<tr>
|
||||||
<th scope="row">4.14.16</th>
|
<th scope="row">4.14.16</th>
|
||||||
<td>2019-10-19</td>
|
<td>2019-10-19</td>
|
||||||
|
|||||||
@ -168,7 +168,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></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>
|
<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>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -589,7 +589,7 @@ function graphics(callback) {
|
|||||||
tsections.shift();
|
tsections.shift();
|
||||||
|
|
||||||
// monitor ID (powershell) - model / vendor
|
// monitor ID (powershell) - model / vendor
|
||||||
const res = data[5].split(/\r/);
|
const res = data[5].split(/\r\n/);
|
||||||
let isections = [];
|
let isections = [];
|
||||||
res.forEach(element => {
|
res.forEach(element => {
|
||||||
const parts = element.split('|');
|
const parts = element.split('|');
|
||||||
@ -726,7 +726,7 @@ function graphics(callback) {
|
|||||||
let displayVendor = '';
|
let displayVendor = '';
|
||||||
let displayModel = '';
|
let displayModel = '';
|
||||||
isections.forEach(element => {
|
isections.forEach(element => {
|
||||||
if (element.instanceId.toLowerCase().startsWith(instanceName)) {
|
if (element.instanceId.toLowerCase().startsWith(instanceName) && vendor.startsWith('(') && model.startsWith('PnP')) {
|
||||||
displayVendor = element.vendor;
|
displayVendor = element.vendor;
|
||||||
displayModel = element.model;
|
displayModel = element.model;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user