]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/services/AdGuardHome.vue
Update AdGuardHome.vue
[github/bastienwirtz/homer.git] / src / components / services / AdGuardHome.vue
index 9c6eb34f550f1b937b9c671f59a9600dfdd87b1b..bf5caa96072da7ae95eeb7bbcb1a7fc3fd7da221 100644 (file)
@@ -11,7 +11,7 @@
             </div>
             <div v-if="item.icon" class="media-left">
               <figure class="image is-48x48">
-                <i style="font-size: 35px;" :class="['fa-fw', item.icon]"></i>
+                <i style="font-size: 35px" :class="['fa-fw', item.icon]"></i>
               </figure>
             </div>
             <div class="media-content">
@@ -51,9 +51,11 @@ export default {
   },
   methods: {
     fetchStatus: async function () {
-      this.status = await fetch(
-        `${this.item.url}/control/status`
-      ).then((response) => response.json());
+      this.status = await fetch(`${this.item.url}/control/status`{
+        credentials: 'include',
+      }).then(
+        (response) => response.json()
+      );
     },
   },
 };