diff options
author | altaf-creator <64111012+altaf-creator@users.noreply.github.com> | 2023-05-04 20:29:39 +0700 |
---|---|---|
committer | altaf-creator <64111012+altaf-creator@users.noreply.github.com> | 2023-05-04 20:29:39 +0700 |
commit | a77cf54dd89e5766ae6112227addcf6d1c93f926 (patch) | |
tree | c81b9067589eae8635a9900bab475ee42a7fd7fb /src/scripts/main.js | |
parent | 57ef45d288fae81000e1d8669c0ddd68aa27cb63 (diff) |
PWA Update - attempt 4.1 | it doesn't work :(
Diffstat (limited to 'src/scripts/main.js')
-rw-r--r-- | src/scripts/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |