From 5a4633654f227195ca22c70e16415c178b345fbd Mon Sep 17 00:00:00 2001 From: Hazem Hagrass Date: Wed, 31 May 2023 17:25:16 +0300 Subject: [PATCH] Add base URL --- diagnose/index.html | 1 - diagnose/sites.js | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/diagnose/index.html b/diagnose/index.html index fb3d0e3..a53ac8e 100644 --- a/diagnose/index.html +++ b/diagnose/index.html @@ -2,7 +2,6 @@ LanCache Host Checker - diff --git a/diagnose/sites.js b/diagnose/sites.js index 78cdec2..9f9018a 100644 --- a/diagnose/sites.js +++ b/diagnose/sites.js @@ -16,12 +16,12 @@ const download = (url, done)=> { .then(done) } const downloadDomainFile = (data) => { - return download('/' + data.domain_files[0], (domains) => { + return download('/cache-domains/' + data.domain_files[0], (domains) => { data.domains = domains.split('\n') }) } const downloadDomains = (done) => { - return downloadJSON('/cache_domains.json', (data)=> { + return downloadJSON('/cache-domains/cache_domains.json', (data)=> { cachedomains = data.cache_domains; const promises = [] for(const domain of cachedomains){