]> git.immae.eu Git - github/bastienwirtz/homer.git/commitdiff
Lint run
authorBastien Wirtz <bastien.wirtz@gmail.com>
Sun, 5 Jun 2022 19:50:28 +0000 (21:50 +0200)
committerBastien Wirtz <bastien.wirtz@gmail.com>
Sun, 5 Jun 2022 19:50:28 +0000 (21:50 +0200)
src/components/ConnectivityChecker.vue
vue.config.js

index f2be6523c18822d586a5917a2b14ee3d092c2186..2b3e47b243adba523f5ade47f86cb2cf53d519b4 100644 (file)
@@ -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;
index 1645c2f83e112bfd3cef7e18b5b1e030621727c2..82329d821c8952ea9c37734221434189b7f1d8e1 100644 (file)
@@ -27,6 +27,6 @@ module.exports = {
     },
   },
   devServer: {
-    disableHostCheck: true
+    disableHostCheck: true,
   },
 };