diff --git a/js/chess.js b/js/chess.js index 9bdf029..b5b6544 100644 --- a/js/chess.js +++ b/js/chess.js @@ -996,7 +996,10 @@ $(function (){ } } catch (err) {} } - $('#cb_peers').text('Synchronizing with ' + n_open + (n_open === 1 ? ' peer' : ' peers') + ' (' + n_total + ' total).'); + const newText = 'Synchronizing with ' + n_open + (n_open === 1 ? ' peer' : ' peers') + ' (' + n_total + ' total).'; + if (newText !== $('#cb_peers').text()) { + $('#cb_peers').text(newText); + } }, 1000); window.onpopstate = function(event){