aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/services/Ping.vue
diff options
context:
space:
mode:
authorBastien Wirtz <bastien.wirtz@gmail.com>2022-10-30 14:48:45 +0100
committerBastien Wirtz <bastien.wirtz@gmail.com>2022-10-30 14:48:45 +0100
commit5bb84dcefbafab8d80313771854c1d982560ee1a (patch)
tree6ff5d53d35b2fc3ce90daa59a02d9475af98d49b /src/components/services/Ping.vue
parentde814b9e04ee3cda0f14d99119e06308245dee29 (diff)
downloadhomer-5bb84dcefbafab8d80313771854c1d982560ee1a.tar.gz
homer-5bb84dcefbafab8d80313771854c1d982560ee1a.tar.zst
homer-5bb84dcefbafab8d80313771854c1d982560ee1a.zip
Fix openweather service
Diffstat (limited to 'src/components/services/Ping.vue')
-rw-r--r--src/components/services/Ping.vue7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/services/Ping.vue b/src/components/services/Ping.vue
index 07bc053..e2db050 100644
--- a/src/components/services/Ping.vue
+++ b/src/components/services/Ping.vue
@@ -29,9 +29,12 @@ export default {
29 }, 29 },
30 methods: { 30 methods: {
31 fetchStatus: async function () { 31 fetchStatus: async function () {
32 const method = typeof this.item.method === 'string' ? this.item.method.toUpperCase() : 'HEAD'; 32 const method =
33 typeof this.item.method === "string"
34 ? this.item.method.toUpperCase()
35 : "HEAD";
33 36
34 if (!['GET', 'HEAD', 'OPTION'].includes(method)) { 37 if (!["GET", "HEAD", "OPTION"].includes(method)) {
35 console.error(`Ping: ${method} is not a supported HTTP method`); 38 console.error(`Ping: ${method} is not a supported HTTP method`);
36 return; 39 return;
37 } 40 }