From: Steinar H. Gunderson Date: Fri, 23 Dec 2022 23:05:24 +0000 (+0100) Subject: Eat JSON parse errors in hash explores. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=d284510fe7ae451b5936920eb42684db205830c6 Eat JSON parse errors in hash explores. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 73f14ef..f78078f 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1994,7 +1994,8 @@ var explore_hash = function(fen) { const signal = current_analysis_xhr.signal; fetch(backend_hash_url + "?fen=" + fen, { signal }) .then((response) => response.json()) - .then((data) => { show_explore_hash_results(data, fen); }); + .then((data) => { show_explore_hash_results(data, fen); }) + .catch((err) => {}); } /** Process the JSON response from a hash probe request.