From: Steinar H. Gunderson Date: Sat, 23 Nov 2013 00:14:38 +0000 (+0100) Subject: Fix another issue with the Closure compiler. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=0451d189f5c931e7c122faa1cf4e1c3174d994fe Fix another issue with the Closure compiler. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 57c3cea..0b7a602 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -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 {