networkGatewayDefault() bug fix no interfaces

This commit is contained in:
Sebastian Hildebrandt 2020-04-25 19:07:16 +02:00
parent 4be661654f
commit fe8ba4141f
5 changed files with 18 additions and 3 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| Version | Date | Comment |
| -------------- | -------------- | -------- |
| 4.23.6 | 2020-04-25 | `networkGatewayDefault()` bug fix no interfaces |
| 4.23.5 | 2020-04-20 | updated docs |
| 4.23.4 | 2020-04-20 | `users()` optimized parseDateTime function |
| 4.23.3 | 2020-04-09 | recactored to avoid `cat` |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">4.23.4</th>
<td>2020-04-20</td>
<td><span class="code">networkGatewayDefault()</span> bugfix no interfaces</td>
</tr>
<tr>
<th scope="row">4.23.5</th>
<td>2020-20-04</td>

View File

@ -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.23.5</span></div>
<div class="version">Current Version: <span id="version">4.23.6</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">
@ -207,7 +207,7 @@
<div class="title">Downloads last month</div>
</div>
<div class="col-xl-4 col-lg-4 col-md-4 col-12">
<div class="numbers">267</div>
<div class="numbers">270</div>
<div class="title">Dependends</div>
</div>
</div>

View File

@ -1404,6 +1404,11 @@ function networkGatewayDefault(callback) {
callback(result);
}
resolve(result);
} else {
if (callback) {
callback(result);
}
resolve(result);
}
});
} catch (e) {
@ -1422,6 +1427,11 @@ function networkGatewayDefault(callback) {
callback(result);
}
resolve(result);
} else {
if (callback) {
callback(result);
}
resolve(result);
}
});
} catch (e) {

View File

@ -161,7 +161,6 @@ function parseDateTime(dt, culture) {
};
culture = culture || {};
let dateFormat = (culture.dateFormat || '').toLowerCase();
let timeFormat = (culture.timeFormat || '');
let pmDesignator = (culture.pmDesignator || '');
const parts = dt.split(' ');