diff options
Diffstat (limited to 'webAO')
| -rw-r--r-- | webAO/utils/fileExists.ts | 2 |
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; }); } |
