diff options
Diffstat (limited to 'src/components/services/Ping.vue')
-rw-r--r-- | src/components/services/Ping.vue | 7 |
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 | } |