X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=3574453fa411b31bdaa926650437cd26a16cde98;hb=5bc76692a719362858abbf89c6808b544890dfe4;hp=ac3f8e97adc6d29a08f92ed4027de9f5dac5e582;hpb=80661ee7ca9f379b14dfd660362b05b7c455b7aa;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index ac3f8e9..3574453 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -145,7 +145,7 @@ var possibly_play_sound = function(old_data, new_data) { return; } var ding = document.getElementById('ding'); - if (ding && ding.play !== undefined) { + if (ding && ding.play) { if (old_data['position'] && old_data['position']['fen'] && new_data['position'] && new_data['position']['fen'] && (old_data['position']['fen'] !== new_data['position']['fen'] || @@ -652,7 +652,7 @@ var update_board = function(current_data, display_data) { // The