]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/services/Emby.vue
fix: resolve typo in Healthchecks service name
[github/bastienwirtz/homer.git] / src / components / services / Emby.vue
index 4d543440bdd5ba7dc6dd81ba490e4728c90c57ac..d2411f067debed17a76e35106fe156b8ffd0e094 100644 (file)
@@ -59,14 +59,10 @@ export default {
   },
   methods: {
     fetchServerStatus: async function () {
-      const headers = {
-        "X-Emby-Token": this.item.apikey,
-      };
-
-      await this.fetch("/System/info/public", { headers })
+      this.fetch("/System/info/public")
         .then((response) => {
           if (response.Id) this.status = "running";
-          else this.status = "dead";
+          else throw new Error();
         })
         .catch((e) => {
           console.log(e);