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,11 +207,11 @@ export class ServerRegistration {
errorElement.style.display = 'none'
document.getElementById('player-count-value_' + this.serverId).innerText = formatNumber(ping.result.players.online)
}
// An updated favicon has been sent, update the src
if (ping.favicon) {
document.getElementById('favicon_' + this.serverId).setAttribute('src', ping.favicon)
}
// An updated favicon has been sent, update the src
if (ping.favicon) {
document.getElementById('favicon_' + this.serverId).setAttribute('src', ping.favicon)
}
}