update web

This commit is contained in:
nikk gitanes
2021-08-10 10:01:27 +03:00
parent ef8bc07f57
commit b175a71a2d
10 changed files with 62 additions and 68 deletions

View File

@@ -22,13 +22,7 @@ export const getMoviePosters = (movieName, language = 'en') => {
export const checkImageURL = async url => {
if (!url || !url.match(/.(jpg|jpeg|png|gif)$/i)) return false
// try {
// await fetch(url, { mode: 'no-cors' })
return true
// } catch (e) {
// return false
// }
return true
}
const magnetRegex = /^magnet:\?xt=urn:[a-z0-9].*/i