aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorpdevq <45507854+pdevq@users.noreply.github.com>2021-01-30 00:17:24 -0500
committerpdevq <45507854+pdevq@users.noreply.github.com>2021-01-30 00:17:24 -0500
commita5fe53beb2d871ec475611c4b3034871e52a190b (patch)
treeec7a898282c86e7ea050f1456f41659baa9d75b1 /src/components
parent3786f80dae2df7780d19ba8ffd9374ef3c2fc30f (diff)
downloadhomer-a5fe53beb2d871ec475611c4b3034871e52a190b.tar.gz
homer-a5fe53beb2d871ec475611c4b3034871e52a190b.tar.zst
homer-a5fe53beb2d871ec475611c4b3034871e52a190b.zip
Fix ConnectivityChecker to evaluate the response status codes.
Diffstat (limited to 'src/components')
-rw-r--r--src/components/ConnectivityChecker.vue8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue
index d41c443..7302e1f 100644
--- a/src/components/ConnectivityChecker.vue
+++ b/src/components/ConnectivityChecker.vue
@@ -37,8 +37,12 @@ export default {
37 method: "HEAD", 37 method: "HEAD",
38 cache: "no-store", 38 cache: "no-store",
39 }) 39 })
40 .then(function () { 40 .then(function (response) {
41 that.offline = false; 41 if (response.status >= 200 && response.status < 300) {
42 that.offline = false;
43 } else {
44 that.offline = true;
45 }
42 }) 46 })
43 .catch(function () { 47 .catch(function () {
44 that.offline = true; 48 that.offline = true;