From d284510fe7ae451b5936920eb42684db205830c6 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 24 Dec 2022 00:05:24 +0100 Subject: [PATCH] Eat JSON parse errors in hash explores. --- www/js/remoteglot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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. -- 2.39.2