From 37a88677cfe6ddc1b0902d8addca3c7f385cdf2d Mon Sep 17 00:00:00 2001 From: Nick Krecklow Date: Fri, 8 May 2020 02:42:46 -0500 Subject: [PATCH] always update favicon if supplied --- assets/js/servers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/js/servers.js b/assets/js/servers.js index cc518b8..71cb92b 100644 --- a/assets/js/servers.js +++ b/assets/js/servers.js @@ -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) } }