From: Steinar H. Gunderson Date: Tue, 15 Nov 2016 18:10:47 +0000 (+0100) Subject: When getting an invalid update, hard-reload instead of trying to wait (which messes... X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=6e6dd05d710c027aa19ac1605668e2017c4f441f;hp=72de1da79baf2dddf6b37374aeb27bd3576af596 When getting an invalid update, hard-reload instead of trying to wait (which messes up diff handling). --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 05ae295..b049c32 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -7,7 +7,7 @@ * @type {Number} * @const * @private */ -var SCRIPT_VERSION = 2016032202; +var SCRIPT_VERSION = 2016091401; /** * The current backend URL. @@ -297,7 +297,7 @@ var request_update = function() { update_num_viewers(num_viewers); } else { console.log("Received invalid update, waiting five seconds and trying again."); - timeout = 5000; + location.reload(true); } // Next update.