X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fbook.js;h=7a4d7ee5e6dd6d25c26e77282aab1fc537100349;hb=24a79b6a2d0fc017ebf07f8cc701b85701aa5031;hp=dce293b2a8e70392d083b271b68fac7b5fa63059;hpb=652025e5e5b191447bae787e351bb97c126ec7a5;p=remoteglot-book diff --git a/www/js/book.js b/www/js/book.js index dce293b..7a4d7ee 100644 --- a/www/js/book.js +++ b/www/js/book.js @@ -534,8 +534,10 @@ var init = function() { prev_move(); } }); -} + // Seemingly the web worker is not started before we send it a message. + stockfish.postMessage("uci"); +} $(document).ready(init);