summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltaf-creator <64111012+altaf-creator@users.noreply.github.com>2023-05-04 19:51:54 +0700
committeraltaf-creator <64111012+altaf-creator@users.noreply.github.com>2023-05-04 19:51:54 +0700
commit720b32ec4858b6ece1593fb68f5f1354d3af0931 (patch)
tree22bec2b3a6eab15cb91ab1538c2beba383552e22
parente3eaf62842087028e54c1a6008c8dfa7b3f45f14 (diff)
PWA Update - attempt 3.3 (i should have used another branch)
-rw-r--r--src/scripts/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/scripts/main.js b/src/scripts/main.js
index becd684..b793fc8 100644
--- a/src/scripts/main.js
+++ b/src/scripts/main.js
@@ -26,6 +26,10 @@ function urlExists(url) {
var http = new XMLHttpRequest();
http.open('HEAD', url, false);
http.send();
+
+ if (http.status != 200)
+ console.log(url)
+
return http.status != 404;
}
if ("serviceWorker" in navigator) {