From 10f6f123e86ca571c99a232a43f7ea920fde9894 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 5 Jun 2022 21:50:28 +0200 Subject: [PATCH] Lint run --- src/components/ConnectivityChecker.vue | 11 +++++++---- vue.config.js | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/ConnectivityChecker.vue b/src/components/ConnectivityChecker.vue index f2be652..2b3e47b 100644 --- a/src/components/ConnectivityChecker.vue +++ b/src/components/ConnectivityChecker.vue @@ -35,7 +35,7 @@ export default { window.addEventListener( "online", function () { - that.checkOffline(); + that.checkOffline(); }, false ); @@ -56,15 +56,18 @@ export default { // extra check to make sure we're not offline let that = this; - const aliveCheckUrl = window.location.href + "?t="+(new Date().valueOf()); + const aliveCheckUrl = window.location.href + "?t=" + new Date().valueOf(); return fetch(aliveCheckUrl, { method: "HEAD", cache: "no-store", - redirect: "manual" + redirect: "manual", }) .then(function (response) { // opaqueredirect means request has been redirected, to auth provider probably - if ((response.type === "opaqueredirect" && !response.ok) || [401, 403].indexOf(response.status) != -1) { + if ( + (response.type === "opaqueredirect" && !response.ok) || + [401, 403].indexOf(response.status) != -1 + ) { window.location.href = aliveCheckUrl; } that.offline = !response.ok; diff --git a/vue.config.js b/vue.config.js index 1645c2f..82329d8 100644 --- a/vue.config.js +++ b/vue.config.js @@ -27,6 +27,6 @@ module.exports = { }, }, devServer: { - disableHostCheck: true + disableHostCheck: true, }, };