fix: use names instead of hostname :p

This commit is contained in:
Strix 2023-10-16 01:36:02 +02:00
parent d1d148456d
commit 70de1d2428
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
3 changed files with 2 additions and 1835 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
.vscode
/target
Cargo.lock

1834
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -19,7 +19,7 @@ async function update() {
let serviceDiv = document.createElement('div');
serviceDiv.classList.add('service');
serviceDiv.innerHTML = `
<span class="service-name"><a href="https://${service.hostname}" target="_blank" style="color: #de4aff">${service.hostname}</a></span>
<span class="service-name"><a href="https://${service.hostname}" target="_blank" style="color: #de4aff">${s.name}</a></span>
<span class="service-status"><b style="color: ${service.success ? '#4f4' : 'red'}">${service.success ? 'Online' : 'Offline'}</b></span>
`;
serviceHolderDiv.appendChild(serviceDiv);