diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2021-09-13 13:09:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 13:09:40 -0700 |
commit | 92d5b8d424cbd4c227c9c76931930787deec4a2f (patch) | |
tree | aa52c1955c9cf210bd95ad32e20f1b4286f7c0a7 /src/components/ConnectivityChecker.vue | |
parent | 97f0c43ccc724ec4502e55f73874a89f822f0a81 (diff) | |
parent | 55c3ea4d92b0c5628ead4475ae7359bbf2cc59c4 (diff) | |
download | homer-92d5b8d424cbd4c227c9c76931930787deec4a2f.tar.gz homer-92d5b8d424cbd4c227c9c76931930787deec4a2f.tar.zst homer-92d5b8d424cbd4c227c9c76931930787deec4a2f.zip |
Merge branch 'main' into main
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; |