X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2Fcomponents%2FConnectivityChecker.vue;h=e0e88bb9f7cab8ab89eb24bc7f57a2e3b31e47e3;hb=e3bd2ecc2ca874270282c3c42813b8053d67dcbd;hp=a91a8098457710423df60d74cf676c1f23a25f0b;hpb=b9c5fcf085bed9c6100283133531b36bfbb06cf0;p=github%2Fbastienwirtz%2Fhomer.git diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index a91a809..e0e88bb 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue @@ -2,7 +2,7 @@

- You're offline bro. + You're offline friend.

@@ -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", }) @@ -44,7 +44,7 @@ export default { that.offline = true; }) .finally(function () { - that.$emit("network:status-update", that.offline); + that.$emit("network-status-update", that.offline); }); }, },