summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scripts/main.js2
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;
}