]> git.sesse.net Git - remoteglot/commitdiff
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 57c3ceab6f0d4e4701721e9726f1d7e4f62a8e97..0b7a6028e66418a1377aa5f235c9e80ce24a3747 100644 (file)
@@ -426,7 +426,7 @@ var update_board = function(board, data, num_viewers) {
        fen = data['position']['fen'];
        update_displayed_line();
 
        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 {
                highlight_from = data['position']['last_move_uci'].substr(0, 2);
                highlight_to = data['position']['last_move_uci'].substr(2, 4);
        } else {