networkConnections() fix truncated ip6 addr (macOS)

This commit is contained in:
Sebastian Hildebrandt
2023-11-24 13:12:40 +01:00
parent f36b80072f
commit 453d338a93
5 changed files with 17 additions and 11 deletions
+5
View File
@@ -57,6 +57,11 @@
</tr>
</thead>
<tbody>
<tr>
<th scope="row">5.21.18</th>
<td>2023-11-24</td>
<td><span class="code">networkConnections()</span> fix truncated ip6 addr (macOS)</td>
</tr>
<tr>
<th scope="row">5.21.17</th>
<td>2023-11-11</td>
+5 -5
View File
@@ -64,8 +64,8 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
var package = JSON.parse(this.responseText);
document.getElementById("version").innerHTML = package.version;
var packageVersion = JSON.parse(this.responseText);
document.getElementById("version").innerHTML = packageVersion.version;
}
};
xhttp.open("GET", "https://registry.npmjs.org/systeminformation/latest", true);
@@ -79,9 +79,9 @@
backDelay: 1200,
};
var typed = new Typed('#typed', options);
return new Typed('#typed', options);
}
function scrollIt(destination, duration = 200, easing = 'linear', callback) {
function scrollIt(destination, duration, easing, callback) {
const easings = {
linear(t) {
@@ -170,7 +170,7 @@
<img class="logo" src="assets/logo.png" alt="logo">
<div class="title">systeminformation</div>
<div class="subtitle"><span id="typed"></span>&nbsp;</div>
<div class="version">New Version: <span id="version">5.21.17</span></div>
<div class="version">New Version: <span id="version">5.21.18</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">
+4 -4
View File
@@ -63,8 +63,8 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
var package = JSON.parse(this.responseText);
document.getElementById("version").innerHTML = package.version;
var packageVersion = JSON.parse(this.responseText);
document.getElementById("version").innerHTML = packageVersion.version;
}
};
xhttp.open("GET", "https://registry.npmjs.org/systeminformation/latest", true);
@@ -78,9 +78,9 @@
backDelay: 1200,
};
var typed = new Typed('#typed', options);
return new Typed('#typed', options);
}
function scrollIt(destination, duration = 200, easing = 'linear', callback) {
function scrollIt(destination, duration, easing, callback) {
const easings = {
linear(t) {