From 85ee5701f80c265f069845b840f368bacf6fc5a6 Mon Sep 17 00:00:00 2001 From: altaf-creator <64111012+altaf-creator@users.noreply.github.com> Date: Thu, 4 May 2023 21:02:09 +0700 Subject: PWA Update - attempt 5 --- src/scripts/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/scripts') diff --git a/src/scripts/main.js b/src/scripts/main.js index 8f9bded..c610e83 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -2,8 +2,7 @@ function urlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); http.send(); - if (http.status != 200) - console.log(`${http.status} ${url} `) + console.log(`${http.status} ${url} `) return http.status != 404; } -- cgit v1.2.3