Add "reload page" button when Lounge fails to start.
This commit is contained in:
parent
45df995d7f
commit
cba87582a5
@ -52,7 +52,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
<p id="loading-page-message">Loading the app… <a href="http://enable-javascript.com/" target="_blank" rel="noopener">Make sure to have JavaScript enabled.</a></p>
|
<p id="loading-page-message">Loading the app… <a href="http://enable-javascript.com/" target="_blank" rel="noopener">Make sure to have JavaScript enabled.</a></p>
|
||||||
<p id="loading-slow">This is taking longer than it should, there might be connectivity issues.</p>
|
<div id="loading-slow">
|
||||||
|
<p>This is taking longer than it should, there might be connectivity issues.</p>
|
||||||
|
<button id="loading-slow-reload" class="btn">Reload page</button>
|
||||||
|
</div>
|
||||||
<script async src="js/loading-slow-alert.js"></script>
|
<script async src="js/loading-slow-alert.js"></script>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,3 +15,7 @@ setTimeout(function() {
|
|||||||
element.style.display = "block";
|
element.style.display = "block";
|
||||||
}
|
}
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
|
document.getElementById("loading-slow-reload").addEventListener("click", function() {
|
||||||
|
location.reload();
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user