]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
Eat JSON parse errors in hash explores.
[remoteglot] / www / js / remoteglot.js
index 73f14efb91405aada6adb0200dc509df4ee774e0..f78078fe938048fab75e6089510bbeeab36f3342 100644 (file)
@@ -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.