]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/ConnectivityChecker.vue
Adds multiple pages based on different config files
[github/bastienwirtz/homer.git] / src / components / ConnectivityChecker.vue
index d5f8f80c27e60787c47ec8de9c67d802e428baa5..e0e88bb9f7cab8ab89eb24bc7f57a2e3b31e47e3 100644 (file)
@@ -2,7 +2,7 @@
   <div v-if="offline" class="offline-message">
     <i class="far fa-dizzy"></i>
     <h1>
-      You're offline bro.
+      You're offline friend.
       <span @click="checkOffline"> <i class="fas fa-redo-alt"></i></span>
     </h1>
   </div>
@@ -33,7 +33,7 @@ export default {
   methods: {
     checkOffline: function () {
       let that = this;
-      return fetch(window.location.href + "?alive", {
+      return fetch(window.location.origin + "?alive", {
         method: "HEAD",
         cache: "no-store",
       })