From 23624a4fa719edbd2f7b8786bc2a12a0c09d2d5d Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 18 Feb 2021 09:30:34 +0100 Subject: [PATCH] Adjust checks --- index.html | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index 163a5f005..df2ef2cb4 100644 --- a/index.html +++ b/index.html @@ -178,33 +178,30 @@ function checkUpCors (url, { contents, status: { content_length, error } }) { // has an error from the CORS proxy - let isValid = - !error || - (error.code !== 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'); - - if (!isValid) { + if ( + error && + (error.code !== 'UNABLE_TO_VERIFY_LEAF_SIGNATURE') + ) { console.log(`${url} has an retrieval error`) return false; } // has actual content or it has a refresh - isValid = - (content_length > 100) || - contents.includes('