summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-07 04:45:47 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-07 04:45:47 -0300
commit5154b104ce5c2937cd9019a2a3ccabf450ad0db8 (patch)
tree25801eadf2db9854a61066b79af21f465675fd66
parentab610869f52879fff22eea875902e90f922094f0 (diff)
downloadwebsite-5154b104ce5c2937cd9019a2a3ccabf450ad0db8.tar.gz
website-5154b104ce5c2937cd9019a2a3ccabf450ad0db8.tar.bz2
website-5154b104ce5c2937cd9019a2a3ccabf450ad0db8.tar.xz
website-5154b104ce5c2937cd9019a2a3ccabf450ad0db8.zip
Assume server to be down if API is unreachable.
Rationale: You cannot register if API is down, which is why you're in the website.
-rw-r--r--src/components/ServerStatus.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ServerStatus.vue b/src/components/ServerStatus.vue
index cb4c2e6..68f7bd4 100644
--- a/src/components/ServerStatus.vue
+++ b/src/components/ServerStatus.vue
@@ -52,8 +52,8 @@ export default class ServerStatus extends Vue {
localStorage.setItem("serverOnline", this.Online ? "true": "false");
}
} catch (err) {
- // API unreachable (assume it's online anyway)
- this.Online = true;
+ // API unreachable (assume it's offline as you cannot register)
+ this.Online = false;
}
setTimeout(this.getStatus, 8000);