From 7a435b40917912903888f47916a52f8135f0070e Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 18 Feb 2021 11:07:36 +0100 Subject: [PATCH] white-dawn proxy --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index c3b764b63..c6e8984bf 100644 --- a/index.html +++ b/index.html @@ -227,6 +227,10 @@ } async function isUp (url) { + fetchTimeout(`https://white-dawn-0191.dotapps.workers.dev/?url=${encodeURIComponent(url)}`) + .then((response) => console.log(url, response)) + .catch((error) => console.error(url, error)); + return fetchTimeout(url, { method: 'HEAD', mode: 'no-cors' }) .then(() => fetchTimeout(`https://api.allorigins.win/get?url=${encodeURIComponent(url)}`)