]> git.sesse.net Git - remoteglot/commitdiff
Fix “no score for this move” message when viewing history.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 22 Mar 2016 18:54:05 +0000 (19:54 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 22 Mar 2016 18:54:05 +0000 (19:54 +0100)
www/js/remoteglot.js

index 5f0531e74acac670c33ba4d8464f99f0c1e86353..e3b3202d14183250bbb840be05803a4481e0d9f8 100644 (file)
@@ -1085,7 +1085,7 @@ var update_board = function() {
        update_clock();
 
        // The score.
-       if (current_display_line) {
+       if (current_display_line && !current_display_line_is_history) {
                if (current_display_line.score) {
                        $("#score").text(format_long_score(current_display_line.score));
                } else {