aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/ConnectivityChecker.vue
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2021-07-14 16:41:00 +0200
committerBastien Wirtz <bastien.wirtz@gmail.com>2021-07-14 16:41:00 +0200
commitf3b3b89b7c037584a2c3ad463b9d0322d28f0f89 (patch)
tree353d98bf507c33a57d5790c3e5b187a0838c9eb9 /src/components/ConnectivityChecker.vue
parenta6b7db5437b04ef7acfcb5f269e88b2451aaa396 (diff)
downloadhomer-f3b3b89b7c037584a2c3ad463b9d0322d28f0f89.tar.gz
homer-f3b3b89b7c037584a2c3ad463b9d0322d28f0f89.tar.zst
homer-f3b3b89b7c037584a2c3ad463b9d0322d28f0f89.zip
Simplify the connectivity checker
Diffstat (limited to 'src/components/ConnectivityChecker.vue')
-rw-r--r--src/components/ConnectivityChecker.vue6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue
index 7302e1f..02cbd7f 100644
--- a/src/components/ConnectivityChecker.vue
+++ b/src/components/ConnectivityChecker.vue
@@ -38,11 +38,7 @@ export default {
38 cache: "no-store", 38 cache: "no-store",
39 }) 39 })
40 .then(function (response) { 40 .then(function (response) {
41 if (response.status >= 200 && response.status < 300) { 41 that.offline = !response.ok;
42 that.offline = false;
43 } else {
44 that.offline = true;
45 }
46 }) 42 })
47 .catch(function () { 43 .catch(function () {
48 that.offline = true; 44 that.offline = true;