iv-org / invidious

Invidious is an alternative front-end to YouTube
https://invidious.io
GNU Affero General Public License v3.0
16.19k stars 1.79k forks source link

JS: Update timeupdate event making it more defensive to prevent errors #4782

Open PMK opened 2 months ago

PMK commented 2 months ago

Hi,

This will fix errors in timeupdate event when you're using an iframe to embed a video and append playsinline=1 and controls=0 in the url. It can be the case that the element with id=link-yt-watch (and the other three) does not exist.

Screenshot 2024-07-06 at 13 35 20