always update favicon if supplied

This commit is contained in:
Nick Krecklow 2020-05-08 02:42:46 -05:00
parent 4375798f6c
commit 37a88677cf
No known key found for this signature in database
GPG Key ID: 5F149FDE156FFA94

@ -207,13 +207,13 @@ export class ServerRegistration {
errorElement.style.display = 'none' errorElement.style.display = 'none'
document.getElementById('player-count-value_' + this.serverId).innerText = formatNumber(ping.result.players.online) document.getElementById('player-count-value_' + this.serverId).innerText = formatNumber(ping.result.players.online)
}
// An updated favicon has been sent, update the src // An updated favicon has been sent, update the src
if (ping.favicon) { if (ping.favicon) {
document.getElementById('favicon_' + this.serverId).setAttribute('src', ping.favicon) document.getElementById('favicon_' + this.serverId).setAttribute('src', ping.favicon)
} }
} }
}
initServerStatus (latestPing) { initServerStatus (latestPing) {
const serverElement = document.createElement('div') const serverElement = document.createElement('div')