From cba87582a5350bbc930ac47c8a082566de57b7c2 Mon Sep 17 00:00:00 2001 From: Niko Bews Date: Tue, 9 May 2017 16:12:12 +0300 Subject: [PATCH] Add "reload page" button when Lounge fails to start. --- client/index.html | 5 ++++- client/js/loading-slow-alert.js | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/client/index.html b/client/index.html index 5c11b2f6..e31ed31f 100644 --- a/client/index.html +++ b/client/index.html @@ -52,7 +52,10 @@

Loading the app… Make sure to have JavaScript enabled.

-

This is taking longer than it should, there might be connectivity issues.

+
+

This is taking longer than it should, there might be connectivity issues.

+ +
diff --git a/client/js/loading-slow-alert.js b/client/js/loading-slow-alert.js index 9709fd86..debff175 100644 --- a/client/js/loading-slow-alert.js +++ b/client/js/loading-slow-alert.js @@ -15,3 +15,7 @@ setTimeout(function() { element.style.display = "block"; } }, 5000); + +document.getElementById("loading-slow-reload").addEventListener("click", function() { + location.reload(); +});