X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=0b7a6028e66418a1377aa5f235c9e80ce24a3747;hp=57c3ceab6f0d4e4701721e9726f1d7e4f62a8e97;hb=0451d189f5c931e7c122faa1cf4e1c3174d994fe;hpb=4c5d301bac0c1cb70229c58a3c45bcafb306e95e 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 {