diff options
author | Robin Schneider <45321827+robinschneider@users.noreply.github.com> | 2021-10-07 00:15:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-07 00:15:26 +0200 |
commit | 270e522e0ee2bb9bef795251796abbfc74efbef3 (patch) | |
tree | c8a22126b6393b48b6c3bd0365befd6fd695faaf /src/components/services/Sonarr.vue | |
parent | 584f2b4b32e69865d9561f1537142791710f676d (diff) | |
parent | 220c60cba04e86e782e9610aa8ef0d77e221072c (diff) | |
download | homer-270e522e0ee2bb9bef795251796abbfc74efbef3.tar.gz homer-270e522e0ee2bb9bef795251796abbfc74efbef3.tar.zst homer-270e522e0ee2bb9bef795251796abbfc74efbef3.zip |
Merge branch 'bastienwirtz:main' into hotkey
Diffstat (limited to 'src/components/services/Sonarr.vue')
-rw-r--r-- | src/components/services/Sonarr.vue | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/services/Sonarr.vue b/src/components/services/Sonarr.vue index 7851b6b..0270255 100644 --- a/src/components/services/Sonarr.vue +++ b/src/components/services/Sonarr.vue | |||
@@ -70,7 +70,9 @@ export default { | |||
70 | }, | 70 | }, |
71 | methods: { | 71 | methods: { |
72 | fetchConfig: function () { | 72 | fetchConfig: function () { |
73 | fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`) | 73 | fetch(`${this.item.url}/api/health?apikey=${this.item.apikey}`, { |
74 | credentials: "include", | ||
75 | }) | ||
74 | .then((response) => { | 76 | .then((response) => { |
75 | if (response.status != 200) { | 77 | if (response.status != 200) { |
76 | throw new Error(response.statusText); | 78 | throw new Error(response.statusText); |
@@ -92,7 +94,9 @@ export default { | |||
92 | console.error(e); | 94 | console.error(e); |
93 | this.serverError = true; | 95 | this.serverError = true; |
94 | }); | 96 | }); |
95 | fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`) | 97 | fetch(`${this.item.url}/api/queue?apikey=${this.item.apikey}`, { |
98 | credentials: "include", | ||
99 | }) | ||
96 | .then((response) => { | 100 | .then((response) => { |
97 | if (response.status != 200) { | 101 | if (response.status != 200) { |
98 | throw new Error(response.statusText); | 102 | throw new Error(response.statusText); |