X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=d102ad027e351c10c417ce237615eebaa1a7ac4e;hb=5874fde7896763aec2dd72109fd9bc7db9b97741;hp=3a95204e20bc7692a38d2fb3fdc36ed5b7e61eab;hpb=a25441956f7e22c3c7da62260f533e2a93b32b1f;p=remoteglot diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 3a95204..d102ad0 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -302,6 +302,7 @@ var request_update = function() { current_analysis_request_timer = setTimeout(function() { request_update(); }, timeout); } }).fail(function(jqXHR, textStatus, errorThrown) { + document.body.style.opacity = null; if (textStatus === "abort") { // Aborted because we are switching backends. Abandon and don't retry, // because another one is already started for us. @@ -1028,6 +1029,8 @@ var patch_move = function(move) { /** Update all the HTML on the page, based on current global state. */ var update_board = function() { + document.body.style.opacity = null; + var data = displayed_analysis_data || current_analysis_data; var current_data = current_analysis_data; // Convenience alias.