From a77cf54dd89e5766ae6112227addcf6d1c93f926 Mon Sep 17 00:00:00 2001 From: altaf-creator <64111012+altaf-creator@users.noreply.github.com> Date: Thu, 4 May 2023 20:29:39 +0700 Subject: PWA Update - attempt 4.1 | it doesn't work :( --- src/scripts/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/scripts') diff --git a/src/scripts/main.js b/src/scripts/main.js index 091a3d2..8f9bded 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -1,9 +1,9 @@ function urlExists(url) { var http = new XMLHttpRequest(); http.open('HEAD', url, false); + http.send(); if (http.status != 200) console.log(`${http.status} ${url} `) - http.send(); return http.status != 404; } -- cgit v1.2.3