diff options
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/video.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/video.jsx b/src/pages/video.jsx index 708c3368..61790dbb 100644 --- a/src/pages/video.jsx +++ b/src/pages/video.jsx @@ -33,7 +33,7 @@ export default function Video() { <div className='shadow bg-white rounded' key={video.id}> <LazyLoadComponent> <iframe - src={`https://www.youtube.com/embed/${video.url.match(/v=([^&]*)/)[1]}`} + src={`https://www.youtube.com/embed/${video.url.match(/v=([^&]*)/)?.[1] || ''}`} title='YouTube video player' allow='accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share' allowFullScreen={true} |
