fix for frequently updating text which hasn't changed
This commit is contained in:
parent
c6e02d15eb
commit
807f834aaa
|
|
@ -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){
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue