diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/ConnectivityChecker.vue | 6 |
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; |