From 8e4e38ee495b69f4541296d3191869b33a88f621 Mon Sep 17 00:00:00 2001 From: maltejur <48161361+maltejur@users.noreply.github.com> Date: Wed, 28 Oct 2020 21:15:29 +0100 Subject: [PATCH] fix --- modules/utils.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/utils.js b/modules/utils.js index f3b3932..5ceea19 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -1,6 +1,8 @@ export function checkFile(url) { return new Promise((resolve) => { - fetch(url) + fetch(url, { + method: "HEAD", + }) .catch(() => resolve(false)) .then(() => resolve(true)); });