remove url reachability check for download url as it may give cors error #12
@ -337,10 +337,7 @@ export const ModForm = ({ existingModData }: ModFormProps) => {
|
|||||||
} else {
|
} else {
|
||||||
for (let i = 0; i < formState.downloadUrls.length; i++) {
|
for (let i = 0; i < formState.downloadUrls.length; i++) {
|
||||||
const downloadUrl = formState.downloadUrls[i]
|
const downloadUrl = formState.downloadUrls[i]
|
||||||
if (
|
if (!isValidUrl(downloadUrl.url)) {
|
||||||
!isValidUrl(downloadUrl.url) ||
|
|
||||||
!(await isReachable(downloadUrl.url))
|
|
||||||
) {
|
|
||||||
if (!errors.downloadUrls)
|
if (!errors.downloadUrls)
|
||||||
errors.downloadUrls = Array(formState.downloadUrls.length)
|
errors.downloadUrls = Array(formState.downloadUrls.length)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user