X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;fp=www%2Fjs%2Fremoteglot.js;h=333bd5c415a458fdd6f9e0808e02a44fdfc4daaf;hp=b049c32ea81bc52c63b1cbb19172d7c769778b21;hb=94f448c82ea3da610c8aca0030f977d1f54741d6;hpb=10f0f0a57c2f786e1cb17fb2fec88a430c0fc0c6 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index b049c32..333bd5c 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -772,7 +772,7 @@ window['collapse_history'] = collapse_history; * Also recreates the global "display_lines". */ var update_refutation_lines = function() { - if (base_fen === null) { + if (base_fen === null || current_display_line === null) { return; } if (display_lines.length > 2) {