fix for frequently updating text which hasn't changed

This commit is contained in:
Jesse D. McDonald 2020-03-15 02:45:18 -05:00
parent c6e02d15eb
commit 807f834aaa
1 changed files with 4 additions and 1 deletions

View File

@ -996,7 +996,10 @@ $(function (){
} }
} catch (err) {} } 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); }, 1000);
window.onpopstate = function(event){ window.onpopstate = function(event){