Skip to content

Commit

Permalink
Update code (human)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrLetsplay2003 committed Oct 13, 2024
1 parent ffc23ba commit ac91471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ function updateStatus(serverData) {

for (let server of servers) {
fetch(server.url)
.catch(a => updateStatus({ server: server.name }))
.then(data => updateStatus({ ...data, server: server.name }))
.error(a => updateStatus({ server: server.name }));
}

0 comments on commit ac91471

Please sign in to comment.