aboutsummaryrefslogtreecommitdiff
path: root/src/app/js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-02-03 20:00:07 +0100
committer0neGal <mail@0negal.com>2024-02-03 20:05:15 +0100
commit25697f42b3d1a451be16701613001b9d95efd66e (patch)
tree53c140dedff2409536cde8f688320dfa8b4c3c94 /src/app/js
parent1beb36b3a810f04a3a2c789f382149a4793340f4 (diff)
downloadViper-25697f42b3d1a451be16701613001b9d95efd66e.tar.gz
Viper-25697f42b3d1a451be16701613001b9d95efd66e.zip
requests.js ignores cache time when no internet
This means if you dont have any internet, but there's a cached requests, it'll use that, even if it was cached a very long time ago. This just attempts to eliminate errors. This can still be turned off for things where you dont want this to happen, notably the masterserver status.
Diffstat (limited to 'src/app/js')
-rw-r--r--src/app/js/launcher.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/js/launcher.js b/src/app/js/launcher.js
index 98f16dc..3130253 100644
--- a/src/app/js/launcher.js
+++ b/src/app/js/launcher.js
@@ -145,7 +145,7 @@ async function loadServers() {
// ask the masterserver for the list of servers, if this has
// been done recently, it'll simply return the cached version
let servers = JSON.parse(
- await request(host, path, "ns-servers")
+ await request(host, path, "ns-servers", false)
)
masterserver = true;