]> git.sesse.net Git - remoteglot/commitdiff
Revert "Fix a null pointer exception in the frontend."
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 16 Nov 2016 17:05:18 +0000 (18:05 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 16 Nov 2016 17:05:18 +0000 (18:05 +0100)
Seemingly this caused the multi-PV lines not to show up at all for some people.

This reverts commit 94f448c82ea3da610c8aca0030f977d1f54741d6.

www/js/remoteglot.js

index 333bd5c415a458fdd6f9e0808e02a44fdfc4daaf..b049c32ea81bc52c63b1cbb19172d7c769778b21 100644 (file)
@@ -772,7 +772,7 @@ window['collapse_history'] = collapse_history;
  * Also recreates the global "display_lines".
  */
 var update_refutation_lines = function() {
-       if (base_fen === null || current_display_line === null) {
+       if (base_fen === null) {
                return;
        }
        if (display_lines.length > 2) {