Skip to content

Commit

Permalink
Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLetsplay2003 committed Oct 13, 2024
1 parent 73bce76 commit efa9ee1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function updateStatus(data) {
}
]
};
lastUpdatedEl.textContent = new Date(data.time).toLocaleString();
lastUpdatedEl.textContent = new Date(data.unixTime).toLocaleString();

statusEl.innerHTML = '';
data.services.forEach(service => {
Expand All @@ -53,6 +53,8 @@ function updateStatus(data) {
});
}

updateStatus(null);

fetch('https://amogus.cringe-studios.com/api/status')
.then(response => response.json())
.then(data => updateStatus(data))
Expand Down

0 comments on commit efa9ee1

Please sign in to comment.