aboutsummaryrefslogtreecommitdiff
path: root/webAO/utils/fileExists.ts
diff options
context:
space:
mode:
Diffstat (limited to 'webAO/utils/fileExists.ts')
-rw-r--r--webAO/utils/fileExists.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/webAO/utils/fileExists.ts b/webAO/utils/fileExists.ts
index 06621e4..f1a9924 100644
--- a/webAO/utils/fileExists.ts
+++ b/webAO/utils/fileExists.ts
@@ -3,5 +3,7 @@ export default async function fileExists(url: string): Promise<boolean> {
method: 'HEAD',
}).then((response) => {
return response.ok;
+ }).catch(() => {
+ return false;
});
}