graphics() resolve on error (windows)

This commit is contained in:
Sebastian Hildebrandt 2019-05-09 09:58:44 +02:00
parent 0a8651daa0
commit 2b8ed4c502
4 changed files with 10 additions and 1 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.1.8 | 2019-05-09 | `graphics()` resolve on error (windows) |
| 4.1.7 | 2019-05-09 | `users()` parsing fix (windows) |
| 4.1.6 | 2019-04-24 | `memory()` swap used fix (linux) |
| 4.1.5 | 2019-04-19 | refactored `wmic` calls to work also on Windows XP |

View File

@ -80,6 +80,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.1.8</th>
<td>2019-05-09</td>
<td><span class="code">graphics()</span> resolve on error (windows)</td>
</tr>
<tr>
<th scope="row">4.1.7</th>
<td>2019-05-09</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></div>
<div class="version">Current Version: <span id="version">4.1.6</span></div>
<div class="version">Current Version: <span id="version">4.1.8</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

@ -497,6 +497,9 @@ function graphics(callback) {
}
resolve(result);
});
} else {
if (callback) { callback(result); }
resolve(result);
}
});
} catch (e) {