fix
This commit is contained in:
parent
0e3365b49e
commit
8e4e38ee49
1 changed files with 3 additions and 1 deletions
|
|
@ -1,6 +1,8 @@
|
|||
export function checkFile(url) {
|
||||
return new Promise((resolve) => {
|
||||
fetch(url)
|
||||
fetch(url, {
|
||||
method: "HEAD",
|
||||
})
|
||||
.catch(() => resolve(false))
|
||||
.then(() => resolve(true));
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue