X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=de1bb1652c3960bde41bcac5ffea08a8476817f3;hb=d6ba2d130757a967d26638702e561feb48f0178e;hp=f65dd98ed038240e06abd04f6ee40ebc6288d54a;hpb=6815bead2f79f4e8bd78a43c8464cda9dd7b8433;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index f65dd98..de1bb16 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -2486,6 +2486,7 @@ function init() { update_board_highlight(); redraw_arrows(); }); + new ResizeObserver(() => update_sparkline(displayed_analysis_data || current_analysis_data)).observe(document.getElementById('scoresparkcontainer')); window.addEventListener('keyup', function(event) { if (event.which == 39) { // Left arrow. next_move();