Fix another issue with the Closure compiler.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 23 Nov 2013 00:14:38 +0000 (01:14 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 23 Nov 2013 00:14:38 +0000 (01:14 +0100)
www/js/remoteglot.js

index 57c3cea..0b7a602 100644 (file)
@@ -426,7 +426,7 @@ var update_board = function(board, data, num_viewers) {
        fen = data['position']['fen'];
        update_displayed_line();
 
-       if (data['position'].last_move_uci) {
+       if (data['position']['last_move_uci']) {
                highlight_from = data['position']['last_move_uci'].substr(0, 2);
                highlight_to = data['position']['last_move_uci'].substr(2, 4);
        } else {