From fcb517d164833a42329c4d811541c5cd8c2b2657 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 4 Mar 2021 09:05:40 +0100 Subject: [PATCH] Disable isUp check (#150) --- index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index dc7da5669..001e44ab8 100644 --- a/index.html +++ b/index.html @@ -193,15 +193,17 @@ } async function isUp (url) { - try { - await fetchTimeout(url, { method: 'HEAD', mode: 'no-cors' }); + // try { + // await fetchTimeout(url, { method: 'HEAD', mode: 'no-cors' }); - const response = await fetchTimeout(`https://proxy.dotapps.workers.dev/?${url}`, { follow: 'error' }); + // const response = await fetchTimeout(`https://proxy.dotapps.workers.dev/?${url}`, { follow: 'error' }); - return response.status === 200; - } catch (error) { - return false; - } + // return response.status === 200; + // } catch (error) { + // return false; + // } + + return false; } async function getBalance (key) {