diff options
author | Andreas Waschinski <25221082+waschinski@users.noreply.github.com> | 2021-08-08 11:18:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-08 11:18:46 +0200 |
commit | a74fa3830232f761bb66c7509e088f7468d5b619 (patch) | |
tree | 3d74723467a10a194b481a2d7cf6c1b84bf921c1 /src/components/ConnectivityChecker.vue | |
parent | bebb6953cb1e5b61be000b3f2d76a27256bff3d9 (diff) | |
parent | 35926e1e6e4669e881b8f69003f97752172eb922 (diff) | |
download | homer-a74fa3830232f761bb66c7509e088f7468d5b619.tar.gz homer-a74fa3830232f761bb66c7509e088f7468d5b619.tar.zst homer-a74fa3830232f761bb66c7509e088f7468d5b619.zip |
Merge branch 'main' into patch-1
Diffstat (limited to 'src/components/ConnectivityChecker.vue')
-rw-r--r-- | src/components/ConnectivityChecker.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index d41c443..02cbd7f 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue | |||
@@ -37,8 +37,8 @@ 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 | that.offline = !response.ok; |
42 | }) | 42 | }) |
43 | .catch(function () { | 43 | .catch(function () { |
44 | that.offline = true; | 44 | that.offline = true; |