},
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);