]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/ConnectivityChecker.vue
Update AdGuardHome.vue
[github/bastienwirtz/homer.git] / src / components / ConnectivityChecker.vue
index d41c4437442e46256749f2230d1fa3755892ab5f..02cbd7fcd4c45d58888cc8f99bb88e00661c18c3 100644 (file)
@@ -37,8 +37,8 @@ export default {
         method: "HEAD",
         cache: "no-store",
       })
-        .then(function () {
-          that.offline = false;
+        .then(function (response) {
+          that.offline = !response.ok;
         })
         .catch(function () {
           that.offline = true;