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

View File

@@ -129,7 +129,7 @@ const Torrent = ({ torrent }) => {
<Dialog open={isDeleteTorrentOpened} onClose={closeDeleteTorrentAlert}>
<DialogTitle>{t('DeleteTorrent?')}</DialogTitle>
<DialogActions>
<Button variant='outlined' onClick={closeDeleteTorrentAlert} color='primary'>
<Button variant='outlined' onClick={closeDeleteTorrentAlert} color='secondary'>
{t('Cancel')}
</Button>
@@ -139,7 +139,7 @@ const Torrent = ({ torrent }) => {
deleteTorrent(torrent)
closeDeleteTorrentAlert()
}}
color='primary'
color='secondary'
autoFocus
>
{t('OK')}