always update favicon if supplied
This commit is contained in:
parent
4375798f6c
commit
37a88677cf
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user