]> git.sesse.net Git - remoteglot/commitdiff
Eat JSON parse errors in hash explores.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 23 Dec 2022 23:05:24 +0000 (00:05 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 23 Dec 2022 23:05:24 +0000 (00:05 +0100)
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.