forked from extern/homer
Update Ping.vue
This commit is contained in:
parent
cf2fb08dc7
commit
76a46c3507
@ -50,7 +50,11 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
fetchStatus: async function () {
|
fetchStatus: async function () {
|
||||||
const url = `${this.item.url}`;
|
const url = `${this.item.url}`;
|
||||||
fetch(url, { method: "HEAD", cache: "no-cache" })
|
fetch(url, {
|
||||||
|
method: "HEAD",
|
||||||
|
cache: "no-cache",
|
||||||
|
credentials: "include",
|
||||||
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw Error(response.statusText);
|
throw Error(response.statusText);
|
||||||
|
Loading…
Reference in New Issue
Block a user