From 6e6dd05d710c027aa19ac1605668e2017c4f441f Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Tue, 15 Nov 2016 19:10:47 +0100 Subject: [PATCH] When getting an invalid update, hard-reload instead of trying to wait (which messes up diff handling). --- www/js/remoteglot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.2