aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstonedDiscord <Tukz@gmx.de>2022-03-11 19:21:14 +0100
committerstonedDiscord <Tukz@gmx.de>2022-03-11 19:21:14 +0100
commitd5c34894d5720ef28e8452995f10720f6981f074 (patch)
tree7367dc163d4b6a295a53862571118ab26211035e
parentdb647fb9319bf4a96cd4a237a3cd4d94e1d11151 (diff)
change the error
-rw-r--r--public/index.html5
-rw-r--r--webAO/master.js2
2 files changed, 3 insertions, 4 deletions
diff --git a/public/index.html b/public/index.html
index 2242081..30bd23a 100644
--- a/public/index.html
+++ b/public/index.html
@@ -88,8 +88,7 @@
</div>
<div id="ms_error" class="error" style="display: none;">
<p>Could not connect to the master server.</p>
- <p>Please check your firewall.</p>
- <p id="ms_error_code">A network error occurred</p>
+ <p>Showing saved list.</p>
</div>
<noscript>
<div id="js_error" class="error">
@@ -120,4 +119,4 @@
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/webAO/master.js b/webAO/master.js
index 65f8a4f..6b791e6 100644
--- a/webAO/master.js
+++ b/webAO/master.js
@@ -92,7 +92,7 @@ function parseMasterlist(msg) {
*/
function onError(evt) {
document.getElementById('ms_error').style.display = 'block';
- document.getElementById('ms_error_code').innerText = `A network error occurred: ${evt.reason} (${evt.code})`;
+ console.error(`A network error occurred: ${evt.reason} (${evt.code})`);
parseMasterlist(localStorage.getItem('masterlist'));
}